Lines Matching full:i
20 int i; in send_1() local
24 for (i = 0; i < MAX_MSG; i++ ) { in send_1()
25 if ( -1 == mq_send(mq1, s_msg_ptr[i], MSG_SIZE, i)) { in send_1()
29 printf("[%d] send '%s' in thread send_1. \n", i+1, s_msg_ptr[i]); in send_1()
37 int i; in send_2() local
41 for (i = 0; i < MAX_MSG; i++ ) { in send_2()
42 if ( -1 == mq_send(mq2, s_msg_ptr[i], MSG_SIZE, i)) { in send_2()
46 printf("[%d] send '%s' in thread send_2. \n", i+1, s_msg_ptr[i]); in send_2()
53 int i; in receive_1() local
57 for (i = 0; i< MAX_MSG; i++) { in receive_1()
58 if ( -1 == mq_receive(mq1, r_msg_ptr_1[i], MSG_SIZE, NULL) ) { in receive_1()
62 printf("[%d] receive '%s' in thread receive_1. \n", i+1, r_msg_ptr_1[i]); in receive_1()
68 int i; in receive_2() local
72 for (i = 0; i< MAX_MSG; i++) { in receive_2()
73 if ( -1 == mq_receive(mq2, r_msg_ptr_2[i], MSG_SIZE, NULL) ) { in receive_2()
77 printf("[%d] receive '%s' in thread receive_2. \n", i+1, r_msg_ptr_2[i]); in receive_2()