Lines Matching refs:i
30 int i; in send_1() local
34 for (i = 0; i < MAX_MSG; i++ ) { in send_1()
35 if ( -1 == mq_send(mq1, s_msg_ptr[i], MSG_SIZE, i)) { in send_1()
39 printf("[%d] send '%s' in thread send_1. \n", i+1, s_msg_ptr[i]); in send_1()
47 int i; in send_2() local
51 for (i = 0; i < MAX_MSG; i++ ) { in send_2()
52 if ( -1 == mq_send(mq2, s_msg_ptr[i], MSG_SIZE, i)) { in send_2()
56 printf("[%d] send '%s' in thread send_2. \n", i+1, s_msg_ptr[i]); in send_2()
63 int i; in receive_1() local
67 for (i = 0; i< MAX_MSG; i++) { in receive_1()
68 if ( -1 == mq_receive(mq1, r_msg_ptr_1[i], MSG_SIZE, NULL) ) { in receive_1()
72 printf("[%d] receive '%s' in thread receive_1. \n", i+1, r_msg_ptr_1[i]); in receive_1()
78 int i; in receive_2() local
82 for (i = 0; i< MAX_MSG; i++) { in receive_2()
83 if ( -1 == mq_receive(mq2, r_msg_ptr_2[i], MSG_SIZE, NULL) ) { in receive_2()
87 printf("[%d] receive '%s' in thread receive_2. \n", i+1, r_msg_ptr_2[i]); in receive_2()