Changeset 772eff7 in rtems-libbsd


Ignore:
Timestamp:
Apr 17, 2014, 7:44:39 AM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, b96abfd647154f10ea8f7fac68e25676636eded5, 9dd0bc27e3338bad08eaaf52d03265d2e7b9b4f7, 7027254d293cf3a8c888bd9f25052e96f458bc67, freebsd-9.3, d164b840c3973e0793da1b3e4142b1711514b9ba
Children:
a271e91
Parents:
45b110f
git-author:
Sebastian Huber <sebastian.huber@…> (04/17/14 07:44:39)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/17/14 09:27:45)
Message:

Update due to CORE mutex API changes

Location:
rtemsbsd/rtems
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • rtemsbsd/rtems/rtems-bsd-mutex.c

    r45b110f r772eff7  
    88
    99/*
    10  * Copyright (c) 2009-2013 embedded brains GmbH.  All rights reserved.
     10 * Copyright (c) 2009-2014 embedded brains GmbH.  All rights reserved.
    1111 *
    1212 *  embedded brains GmbH
     
    259259
    260260        if (location == OBJECTS_LOCAL && !_Attributes_Is_counting_semaphore(sema->attribute_set)) {
    261                 int owned = sema->Core_control.mutex.holder_id == rtems_task_self();
     261                int owned = sema->Core_control.mutex.holder == _Thread_Executing;
    262262
    263263                _Thread_Enable_dispatch();
  • rtemsbsd/rtems/rtems-bsd-sx.c

    r45b110f r772eff7  
    88
    99/*
    10  * Copyright (c) 2009-2013 embedded brains GmbH.  All rights reserved.
     10 * Copyright (c) 2009-2014 embedded brains GmbH.  All rights reserved.
    1111 *
    1212 *  embedded brains GmbH
     
    344344
    345345        if (location == OBJECTS_LOCAL && !_Attributes_Is_counting_semaphore(sema->attribute_set)) {
    346                 int xlocked = sema->Core_control.mutex.holder_id == rtems_task_self();
     346                int xlocked = sema->Core_control.mutex.holder == _Thread_Executing;
    347347
    348348                _Thread_Enable_dispatch();
Note: See TracChangeset for help on using the changeset viewer.