summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/rtems/rtems-bsd-muteximpl.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-06-23 08:58:58 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-06-23 08:58:58 +0200
commitb22ad9f4c57587e8ab4a22438652e10ad0d2345d (patch)
treed659a5e771b802ec5839ca766bfa0202dcfc084b /rtemsbsd/rtems/rtems-bsd-muteximpl.c
parentUpdate libbsd.txt with Xilinx Zynq TXCSUM and RXCSUM controls. (diff)
downloadrtems-libbsd-b22ad9f4c57587e8ab4a22438652e10ad0d2345d.tar.bz2
rtems-bsd-mutex: Fix resource count updates
Diffstat (limited to 'rtemsbsd/rtems/rtems-bsd-muteximpl.c')
-rw-r--r--rtemsbsd/rtems/rtems-bsd-muteximpl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rtemsbsd/rtems/rtems-bsd-muteximpl.c b/rtemsbsd/rtems/rtems-bsd-muteximpl.c
index c68bd461..d7776f5a 100644
--- a/rtemsbsd/rtems/rtems-bsd-muteximpl.c
+++ b/rtemsbsd/rtems/rtems-bsd-muteximpl.c
@@ -57,6 +57,7 @@ rtems_bsd_mutex_lock_more(struct lock_object *lock, rtems_bsd_mutex *m,
/* Priority inheritance */
_Thread_Raise_priority(owner, executing->current_priority);
+ ++executing->resource_count;
_Thread_queue_Enqueue_critical(&m->queue, executing,
STATES_WAITING_FOR_MUTEX, WATCHDOG_NO_TIMEOUT, 0,
lock_context);