Home
last modified time | relevance | path

Searched refs:msgq (Results 1 – 1 of 1) sorted by relevance

/packages/services/BuiltInPrintService/jni/lib/
Dwprint_msgq.c50 _msgq_hdr_t *msgq; in msgQCreate() local
54 msgq = (_msgq_hdr_t *) malloc((size_t)msgq_size); in msgQCreate()
56 if (msgq) { in msgQCreate()
57 memset((char *) msgq, 0, (size_t)msgq_size); in msgQCreate()
58 msgq->msgq_id = (msg_q_id) msgq; in msgQCreate()
59 msgq->max_msgs = max_msgs; in msgQCreate()
60 msgq->max_msg_length = max_msg_length; in msgQCreate()
61 msgq->num_msgs = 0; in msgQCreate()
64 pthread_mutexattr_init(&(msgq->mutexattr)); in msgQCreate()
65 pthread_mutexattr_settype(&(msgq->mutexattr), PTHREAD_MUTEX_RECURSIVE_NP); in msgQCreate()
[all …]