mutex was returned;

v0.5.xx
Alexander Vdolainen 9 years ago
parent 9c19c11298
commit a40133f23a

@ -122,10 +122,12 @@ static inline int __sxmsg_send(chnl_t *channel, const char *data, size_t datalen
pthread_mutex_unlock(&co->write_pending_lock); pthread_mutex_unlock(&co->write_pending_lock);
} }
//pthread_mutex_lock(&msg->wait); /* we will sleep here */ pthread_mutex_lock(&msg->wait); /* we will sleep here */
#if 0
while(pthread_mutex_trylock(&msg->wait)) { while(pthread_mutex_trylock(&msg->wait)) {
//printf("here opcode = %d\n", head->opcode); //printf("here opcode = %d\n", head->opcode);
} }
#endif
if(head->payload_length) { if(head->payload_length) {
*omsg = msg; *omsg = msg;

Loading…
Cancel
Save