Changeset 496232e in mainline


Ignore:
Timestamp:
2015-06-12T08:21:00Z (9 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2f9a8e8
Parents:
dc0d6e5d
Message:

Make sure the thread blocking on a futex is stoppable and that it waits
for UDEBUG_M_GO when it is unblocked or interrupted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/synch/futex.c

    rdc0d6e5d r496232e  
    400400                return (sysarg_t) ENOENT;
    401401
     402#ifdef CONFIG_UDEBUG
     403        udebug_stoppable_begin();
     404#endif
     405
    402406        int rc = waitq_sleep_timeout(&futex->wq, 0, SYNCH_FLAGS_INTERRUPTIBLE);
     407
     408#ifdef CONFIG_UDEBUG
     409        udebug_stoppable_end();
     410#endif
    403411
    404412        return (sysarg_t) rc;
Note: See TracChangeset for help on using the changeset viewer.