rsrv: add some comments
This commit is contained in:
@@ -37,6 +37,9 @@
|
||||
* cas_send_bs_msg()
|
||||
*
|
||||
* (channel access server send message)
|
||||
*
|
||||
*
|
||||
* Set lock_needed=1 unless SEND_LOCK() is held by caller
|
||||
*/
|
||||
void cas_send_bs_msg ( struct client *pclient, int lock_needed )
|
||||
{
|
||||
|
||||
@@ -62,8 +62,10 @@ typedef struct caHdrLargeArray {
|
||||
enum messageBufferType { mbtUDP, mbtSmallTCP, mbtLargeTCP };
|
||||
struct message_buffer {
|
||||
char *buf;
|
||||
/*! points to first filled byte in buffer */
|
||||
unsigned stk;
|
||||
unsigned maxstk;
|
||||
/*! points to first unused byte in buffer (after filled bytes) */
|
||||
unsigned cnt;
|
||||
enum messageBufferType type;
|
||||
};
|
||||
@@ -72,7 +74,9 @@ extern epicsThreadPrivateId rsrvCurrentClient;
|
||||
|
||||
typedef struct client {
|
||||
ELLNODE node;
|
||||
/*! guarded by SEND_LOCK() aka. client::lock */
|
||||
struct message_buffer send;
|
||||
/*! accessed by receive thread w/o locks cf. camsgtask() */
|
||||
struct message_buffer recv;
|
||||
epicsMutexId lock;
|
||||
epicsMutexId putNotifyLock;
|
||||
|
||||
Reference in New Issue
Block a user