diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-06-23 08:58:58 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-06-23 08:58:58 +0200 |
commit | b22ad9f4c57587e8ab4a22438652e10ad0d2345d (patch) | |
tree | d659a5e771b802ec5839ca766bfa0202dcfc084b /rtemsbsd/include/machine/rtems-bsd-muteximpl.h | |
parent | Update libbsd.txt with Xilinx Zynq TXCSUM and RXCSUM controls. (diff) | |
download | rtems-libbsd-b22ad9f4c57587e8ab4a22438652e10ad0d2345d.tar.bz2 |
rtems-bsd-mutex: Fix resource count updates
Diffstat (limited to 'rtemsbsd/include/machine/rtems-bsd-muteximpl.h')
-rw-r--r-- | rtemsbsd/include/machine/rtems-bsd-muteximpl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rtemsbsd/include/machine/rtems-bsd-muteximpl.h b/rtemsbsd/include/machine/rtems-bsd-muteximpl.h index 45f501c6..0bb23f2e 100644 --- a/rtemsbsd/include/machine/rtems-bsd-muteximpl.h +++ b/rtemsbsd/include/machine/rtems-bsd-muteximpl.h @@ -79,10 +79,10 @@ rtems_bsd_mutex_lock(struct lock_object *lock, rtems_bsd_mutex *m) owner = m->owner; executing = _Thread_Executing; - ++executing->resource_count; if (__predict_true(owner == NULL)) { m->owner = executing; + ++executing->resource_count; _Thread_queue_Release(&m->queue, &lock_context); } else { |