Changeset 70d52b8 in rtems-libbsd


Ignore:
Timestamp:
May 30, 2016, 2:05:15 PM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
b96abfd647154f10ea8f7fac68e25676636eded5, 26866d2c1f2432b25b5db71995bce2035187c715, freebsd-9.3, 6da0dda3255e2a49365aee6904fe00d4f2ca9d68
Children:
f9798ad
Parents:
b367591
git-author:
Sebastian Huber <sebastian.huber@…> (05/30/16 14:05:15)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/30/16 14:06:42)
Message:

rtems-bsd-mutex: Update due to API changes

Location:
rtemsbsd
Files:
2 edited

Legend:

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

    rb367591 r70d52b8  
    7676        Thread_Control *owner;
    7777
    78         _Thread_queue_Context_initialize(&queue_context, NULL);
     78        _Thread_queue_Context_initialize(&queue_context);
    7979        _Thread_queue_Acquire(&m->queue, &queue_context.Lock_context);
    8080
     
    101101        Thread_Control *owner;
    102102
    103         _Thread_queue_Context_initialize(&queue_context, NULL);
     103        _Thread_queue_Context_initialize(&queue_context);
    104104        _Thread_queue_Acquire(&m->queue, &queue_context.Lock_context);
    105105
     
    135135        int nest_level;
    136136
    137         _Thread_queue_Context_initialize(&queue_context, NULL);
     137        _Thread_queue_Context_initialize(&queue_context);
    138138        _Thread_queue_Acquire(&m->queue, &queue_context.Lock_context);
    139139
  • rtemsbsd/rtems/rtems-kernel-muteximpl.c

    rb367591 r70d52b8  
    6161
    6262                ++executing->resource_count;
     63                _Thread_queue_Context_set_expected_level(queue_context, 1);
    6364                _Thread_queue_Enqueue_critical(&m->queue,
    6465                    BSD_MUTEX_TQ_OPERATIONS, executing,
    65                     STATES_WAITING_FOR_MUTEX, WATCHDOG_NO_TIMEOUT, 0,
    66                     &queue_context->Lock_context);
     66                    STATES_WAITING_FOR_MUTEX, WATCHDOG_NO_TIMEOUT,
     67                    queue_context);
    6768        }
    6869}
Note: See TracChangeset for help on using the changeset viewer.