Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/test/synch/rcu1.c

    r7850dda r897fd8f1  
    5151} exited_t;
    5252
    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
     53/* Co-opt EPARTY error code for race detection. */
     54#define ERACE   EPARTY
    5755
    5856/*-------------------------------------------------------------------*/
     
    7169       
    7270        if (!p->exited) {
    73                 *presult = ECBLOST;
     71                *presult = ETIMEOUT;
    7472        }
    7573}
     
    116114                        do {
    117115                                int ret = thread_join_timeout(thread[i], 5 * 1000 * 1000, 0);
    118                                 joined = (ret != ESYNCH_TIMEOUT);
     116                                joined = (ret != ETIMEOUT);
    119117                               
    120                                 if (ret == ESYNCH_OK_BLOCKED) {
     118                                if (ret == EOK) {
    121119                                        TPRINTF("%zu threads remain\n", thread_cnt - i - 1);
    122120                                }
Note: See TracChangeset for help on using the changeset viewer.