Changes in kernel/test/synch/rcu1.c [b7fd2a0:7850dda] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/synch/rcu1.c
rb7fd2a0 r7850dda 51 51 } exited_t; 52 52 53 /* Co-opt EPARTY error code for race detection. */ 54 #define ERACE EPARTY 55 56 /*-------------------------------------------------------------------*/ 57 static void wait_for_cb_exit(size_t secs, exited_t *p, errno_t *presult) 53 /* Callback raced with preexisting readers. */ 54 #define ERACE 123 55 /* Waited for too long for the callback to exit; consider it lost. */ 56 #define ECBLOST 432 57 58 /*-------------------------------------------------------------------*/ 59 static void wait_for_cb_exit(size_t secs, exited_t *p, int *presult) 58 60 { 59 61 size_t loops = 0; … … 69 71 70 72 if (!p->exited) { 71 *presult = E TIMEOUT;73 *presult = ECBLOST; 72 74 } 73 75 } … … 113 115 bool joined = false; 114 116 do { 115 errno_t ret = thread_join_timeout(thread[i], 5 * 1000 * 1000, 0);116 joined = (ret != E TIMEOUT);117 int ret = thread_join_timeout(thread[i], 5 * 1000 * 1000, 0); 118 joined = (ret != ESYNCH_TIMEOUT); 117 119 118 if (ret == E OK) {120 if (ret == ESYNCH_OK_BLOCKED) { 119 121 TPRINTF("%zu threads remain\n", thread_cnt - i - 1); 120 122 } … … 365 367 366 368 367 static errno_t seq_test_result = EOK;369 static int seq_test_result = EOK; 368 370 369 371 static atomic_t cur_time = {1}; … … 534 536 join_one(); 535 537 536 errno_t result = EOK;538 int result = EOK; 537 539 wait_for_cb_exit(2 /* secs */, p, &result); 538 540 … … 553 555 typedef struct preempt_struct { 554 556 exited_t e; 555 errno_t result;557 int result; 556 558 } preempt_t; 557 559
Note:
See TracChangeset
for help on using the changeset viewer.