Changeset cca2d8ab in rtems


Ignore:
Timestamp:
Apr 19, 2016, 1:09:29 PM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
b5a21bf1
Parents:
3d0c4005
git-author:
Sebastian Huber <sebastian.huber@…> (04/19/16 13:09:29)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/21/16 05:29:40)
Message:

score: Rename _CORE_RWLock_Obtain()

Rename _CORE_RWLock_Obtain_for_reading() into
_CORE_RWLock_Seize_for_reading(). Rename
_CORE_RWLock_Obtain_for_writing() into _CORE_RWLock_Seize_for_writing().
Rename _CORE_RWLock_Release() into _CORE_RWLock_Surrender(). This
avoids confusion with the ISR lock acquire and release.

Location:
cpukit
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/src/prwlockrdlock.c

    r3d0c4005 rcca2d8ab  
    4848
    4949      executing = _Thread_Executing;
    50       _CORE_RWLock_Obtain_for_reading(
     50      _CORE_RWLock_Seize_for_reading(
    5151        &the_rwlock->RWLock,
    5252        executing,
  • cpukit/posix/src/prwlocktimedrdlock.c

    r3d0c4005 rcca2d8ab  
    7474
    7575      executing = _Thread_Executing;
    76       _CORE_RWLock_Obtain_for_reading(
     76      _CORE_RWLock_Seize_for_reading(
    7777        &the_rwlock->RWLock,
    7878        executing,
  • cpukit/posix/src/prwlocktimedwrlock.c

    r3d0c4005 rcca2d8ab  
    7676
    7777      executing = _Thread_Executing;
    78       _CORE_RWLock_Obtain_for_writing(
     78      _CORE_RWLock_Seize_for_writing(
    7979        &the_rwlock->RWLock,
    8080        executing,
  • cpukit/posix/src/prwlocktryrdlock.c

    r3d0c4005 rcca2d8ab  
    5252
    5353      executing = _Thread_Executing;
    54       _CORE_RWLock_Obtain_for_reading(
     54      _CORE_RWLock_Seize_for_reading(
    5555        &the_rwlock->RWLock,
    5656        executing,
  • cpukit/posix/src/prwlocktrywrlock.c

    r3d0c4005 rcca2d8ab  
    5252
    5353      executing = _Thread_Executing;
    54       _CORE_RWLock_Obtain_for_writing(
     54      _CORE_RWLock_Seize_for_writing(
    5555        &the_rwlock->RWLock,
    5656        executing,
  • cpukit/posix/src/prwlockunlock.c

    r3d0c4005 rcca2d8ab  
    5252
    5353    case OBJECTS_LOCAL:
    54       status = _CORE_RWLock_Release( &the_rwlock->RWLock, _Thread_Executing );
     54      status = _CORE_RWLock_Surrender( &the_rwlock->RWLock, _Thread_Executing );
    5555      _Objects_Put( &the_rwlock->Object );
    5656      return _POSIX_RWLock_Translate_core_RWLock_return_code( status );
  • cpukit/posix/src/prwlockwrlock.c

    r3d0c4005 rcca2d8ab  
    5656
    5757      executing = _Thread_Executing;
    58       _CORE_RWLock_Obtain_for_writing(
     58      _CORE_RWLock_Seize_for_writing(
    5959        &the_rwlock->RWLock,
    6060        executing,
  • cpukit/score/include/rtems/score/corerwlockimpl.h

    r3d0c4005 rcca2d8ab  
    100100 */
    101101
    102 void _CORE_RWLock_Obtain_for_reading(
     102void _CORE_RWLock_Seize_for_reading(
    103103  CORE_RWLock_Control *the_rwlock,
    104104  Thread_Control      *executing,
     
    119119 * @note Status is returned via the thread control block.
    120120 */
    121 void _CORE_RWLock_Obtain_for_writing(
     121void _CORE_RWLock_Seize_for_writing(
    122122  CORE_RWLock_Control *the_rwlock,
    123123  Thread_Control      *executing,
     
    136136 *  @retval Status is returned to indicate successful or failure.
    137137 */
    138 CORE_RWLock_Status _CORE_RWLock_Release(
     138CORE_RWLock_Status _CORE_RWLock_Surrender(
    139139  CORE_RWLock_Control *the_rwlock,
    140140  Thread_Control      *executing
  • cpukit/score/src/corerwlockobtainread.c

    r3d0c4005 rcca2d8ab  
    2424#include <rtems/score/watchdog.h>
    2525
    26 void _CORE_RWLock_Obtain_for_reading(
     26void _CORE_RWLock_Seize_for_reading(
    2727  CORE_RWLock_Control *the_rwlock,
    2828  Thread_Control      *executing,
  • cpukit/score/src/corerwlockobtainwrite.c

    r3d0c4005 rcca2d8ab  
    2424#include <rtems/score/watchdog.h>
    2525
    26 void _CORE_RWLock_Obtain_for_writing(
     26void _CORE_RWLock_Seize_for_writing(
    2727  CORE_RWLock_Control                 *the_rwlock,
    2828  Thread_Control                      *executing,
  • cpukit/score/src/corerwlockrelease.c

    r3d0c4005 rcca2d8ab  
    2525#include <rtems/score/watchdog.h>
    2626
    27 CORE_RWLock_Status _CORE_RWLock_Release(
     27CORE_RWLock_Status _CORE_RWLock_Surrender(
    2828  CORE_RWLock_Control *the_rwlock,
    2929  Thread_Control      *executing
Note: See TracChangeset for help on using the changeset viewer.