Changeset a7bbe3f in rtems-libbsd


Ignore:
Timestamp:
Apr 16, 2012, 4:58:01 PM (8 years ago)
Author:
Jennifer Averett <jennifer.averett@…>
Branches:
4.11, c1e05b9ea378b2971e3d7704779112b4bc4296da, freebsd-9.3, 4a77611a223ea883fb548679b516d326a020d447
Children:
6053efd
Parents:
a824229
Message:

Added _rw_try_upgrade & _rw_try_upgrade to resolve linker errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemsbsd/src/rtems-bsd-rwlock.c

    ra824229 ra7bbe3f  
    256256  iret = pthread_rwlock_unlock( &rw->lock_object.lo_id );
    257257  BSD_ASSERT( iret == 0 );
     258}
     259
     260/*
     261 * Attempt to do a non-blocking upgrade from a read lock to a write
     262 * lock.  This will only succeed if this thread holds a single read
     263 * lock.  Returns true if the upgrade succeeded and false otherwise.
     264 */
     265int
     266_rw_try_upgrade(struct rwlock *rw, const char *file, int line)
     267{
     268  return 0; /* XXX */
     269}
     270
     271/*
     272 * Downgrade a write lock into a single read lock.
     273 */
     274void
     275_rw_downgrade(struct rwlock *rw, const char *file, int line)
     276{
     277  /* XXX */
    258278}
    259279
Note: See TracChangeset for help on using the changeset viewer.