ui/common/message.c

changeset 1016
ccde46662db7
parent 982
9102a53c5385
equal deleted inserted replaced
1015:b459361d98ad 1016:ccde46662db7
44 handler->handler.stop = uic_simple_msg_handler_stop; 44 handler->handler.stop = uic_simple_msg_handler_stop;
45 handler->handler.send = uic_simple_msg_handler_send; 45 handler->handler.send = uic_simple_msg_handler_send;
46 handler->handler.callback = callback; 46 handler->handler.callback = callback;
47 handler->in = in; 47 handler->in = in;
48 handler->out = out; 48 handler->out = out;
49 handler->outbuf = cxBufferCreate(NULL, 4096, NULL, CX_BUFFER_FREE_CONTENTS | CX_BUFFER_AUTO_EXTEND); 49 handler->outbuf = cxBufferCreate(NULL, NULL, 4096, CX_BUFFER_FREE_CONTENTS | CX_BUFFER_AUTO_EXTEND);
50 handler->stop = 0; 50 handler->stop = 0;
51 pthread_mutex_init(&handler->queue_lock, NULL); 51 pthread_mutex_init(&handler->queue_lock, NULL);
52 pthread_mutex_init(&handler->avlbl_lock, NULL); 52 pthread_mutex_init(&handler->avlbl_lock, NULL);
53 pthread_cond_init(&handler->available, NULL); 53 pthread_cond_init(&handler->available, NULL);
54 return (UiMessageHandler*)handler; 54 return (UiMessageHandler*)handler;

mercurial