Changeset 132ab5d1 in mainline for kernel/test/synch/rcu1.c


Ignore:
Timestamp:
2018-01-30T03:20:45Z (8 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/fix-logger-deadlock, topic/msim-upgrade, topic/simplify-dev-export
Children:
5a6cc679
Parents:
8bfb163 (diff), 6a5d05b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge commit '6a5d05bd2551e64111bea4f9332dd7448c26ce84' into forwardport

Separate return value from error code in gen_irq_code*().

File:
1 edited

Legend:

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

    r8bfb163 r132ab5d1  
    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.