Changeset 0b08247 in rtems-libbsd


Ignore:
Timestamp:
Nov 3, 2016, 10:18:27 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
b96abfd647154f10ea8f7fac68e25676636eded5, debc0aed8b9bef9996b8ec0ae7a70b0b41912e27, a58f553e9dda119aa149fd8ba814c564a5d4a9b2, freebsd-9.3, 182aac377d7e345847d4dd11387ff549d27bd55d
Children:
617dc0f
Parents:
ed499fa
Message:

rtems-bsd-mutex: Update due to API changes

File:
1 edited

Legend:

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

    red499fa r0b08247  
    8787        if (__predict_true(owner == NULL)) {
    8888                m->queue.Queue.owner = executing;
    89                 ++executing->resource_count;
     89                _Thread_Resource_count_increment(executing);
    9090
    9191                _Thread_queue_Release(&m->queue, &queue_context);
     
    112112        if (owner == NULL) {
    113113                m->queue.Queue.owner = executing;
    114                 ++executing->resource_count;
     114                _Thread_Resource_count_increment(executing);
    115115                success = 1;
    116116        } else if (owner == executing) {
     
    147147                heads = m->queue.Queue.heads;
    148148                m->queue.Queue.owner = NULL;
    149                 --owner->resource_count;
     149                _Thread_Resource_count_decrement(owner);
    150150
    151151                if (__predict_true(heads == NULL)) {
Note: See TracChangeset for help on using the changeset viewer.