Changeset b22ad9f in rtems-libbsd


Ignore:
Timestamp:
Jun 23, 2015, 6:58:58 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, c1e05b9ea378b2971e3d7704779112b4bc4296da, freebsd-9.3, 4a77611a223ea883fb548679b516d326a020d447
Children:
b5cdb95
Parents:
b9fb1ef
Message:

rtems-bsd-mutex: Fix resource count updates

Location:
rtemsbsd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • rtemsbsd/include/machine/rtems-bsd-muteximpl.h

    rb9fb1ef rb22ad9f  
    8080        owner = m->owner;
    8181        executing = _Thread_Executing;
    82         ++executing->resource_count;
    8382
    8483        if (__predict_true(owner == NULL)) {
    8584                m->owner = executing;
     85                ++executing->resource_count;
    8686
    8787                _Thread_queue_Release(&m->queue, &lock_context);
  • rtemsbsd/rtems/rtems-bsd-muteximpl.c

    rb9fb1ef rb22ad9f  
    5858                _Thread_Raise_priority(owner, executing->current_priority);
    5959
     60                ++executing->resource_count;
    6061                _Thread_queue_Enqueue_critical(&m->queue, executing,
    6162                    STATES_WAITING_FOR_MUTEX, WATCHDOG_NO_TIMEOUT, 0,
Note: See TracChangeset for help on using the changeset viewer.