42 delete [] lastptr->
mes;
72 memcpy(buf,ptr->
mes,retlen);
78 if(retlen < maxlen && retlen >= 0) cbuf[retlen] =
'\0';
89 if(retlen < maxlen && retlen >= 0) cbuf[retlen] =
'\0';
128 while(ptr->
next != NULL) ptr = ptr->
next;
132 ptr->
mes =
new char [len];
136 memcpy(ptr->
mes,buf,len);
151 if(ret < 0)
return ret;
152 return write(message,strlen(message));
int rlwthread_mutex_destroy(pthread_mutex_t *mptr)
int rlwthread_mutex_init(pthread_mutex_t *mptr, const pthread_mutexattr_t *attr)
int rlwthread_mutex_lock(pthread_mutex_t *mptr)
struct _MessageList_ * next
struct rlFifo::_MessageList_ MessageList
int rlvsnprintf(char *text, int len, const char *format, va_list ap)
int read(void *buf, int maxlen)
int rlwrapincrement_semaphore(WSEMAPHORE *s)
int rlwrapinit_semaphore(WSEMAPHORE *s, int cmax)
int printf(const char *format,...)
int rlwthread_mutex_unlock(pthread_mutex_t *mptr)
int rlwrapwait_semaphore(WSEMAPHORE *s)
int rlwrapdestroy_semaphore(WSEMAPHORE *s)
int write(const void *buf, int len)
rlFifo(int maxmessages=0)