mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-01 05:26:52 +08:00
_sx_xlock(): Added check for not in interrupt.
This commit is contained in:
parent
d4515a8d0e
commit
cb5035400c
@ -196,6 +196,7 @@ _sx_xlock(struct sx *sx, int opts, const char *file, int line)
|
|||||||
|
|
||||||
#warning "SX_INTERRUPTIBLE NOT SUPPORTED YET"
|
#warning "SX_INTERRUPTIBLE NOT SUPPORTED YET"
|
||||||
/* BSD_ASSERT((opts & SX_INTERRUPTIBLE) == 0); */
|
/* BSD_ASSERT((opts & SX_INTERRUPTIBLE) == 0); */
|
||||||
|
BSD_ASSERT(!rtems_interrupt_is_in_progress());
|
||||||
|
|
||||||
sc = rtems_semaphore_obtain( sx->lock_object.lo_id, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
|
sc = rtems_semaphore_obtain( sx->lock_object.lo_id, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
|
||||||
BSD_ASSERT_SC(sc);
|
BSD_ASSERT_SC(sc);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user