Changeset 772eff7 in rtems-libbsd


Ignore:
Timestamp:
Apr 17, 2014, 7:44:39 AM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, fd86c091b97759106da7355ce1dd81ebe030e285, freebsd-9.3, f020f08430150c1656a0ad0a1de13699db9b980b
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.