Changeset 9b4f75e in rtems for doc/posix_users/semaphores.t


Ignore:
Timestamp:
Jul 24, 2008, 8:44:47 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
4d6e2f0
Parents:
1750f5a6
Message:

2008-07-24 Joel Sherrill <joel.sherrill@…>

PR 1291/cpukit

  • posix_users/mutex.t, posix_users/semaphores.t: Update tests to reflect changes required by POSIX blocking calls sometimes taking relative not absolute time.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/posix_users/semaphores.t

    r1750f5a6 r9b4f75e  
    464464int sem_timedwait(
    465465  sem_t                 *sem,
    466   const struct timespec *timeout
     466  const struct timespec *abstime
    467467);
    468468@end example
     
    485485
    486486@subheading DESCRIPTION:
    487 This function attemtps to lock a semaphore specified by @code{sem}, and will
    488 wait for the semaphore for an interval specified by @code{timeout}. If the
    489 semaphore is available, then the semaphore is locked (i.e., the semaphore
    490 value is decremented) and the function returns a value of 0. The semaphore
    491 remains locked until released by a @code{sem_post()} call. If the semaphore
    492 is unavailable, then the function will wait for the semaphore to become
    493 available for the amount of time specified by @code{timeout}.
     487
     488This function attemtps to lock a semaphore specified by @code{sem},
     489and will wait for the semaphore until the absolute time specified by
     490@code{abstime}. If the semaphore is available, then the semaphore is
     491locked (i.e., the semaphore value is decremented) and the function
     492returns a value of 0. The semaphore remains locked until released by
     493a @code{sem_post()} call. If the semaphore is unavailable, then the
     494function will wait for the semaphore to become available for the amount
     495of time specified by @code{timeout}.
    494496
    495497If the semaphore does not become available within the interval specified by
Note: See TracChangeset for help on using the changeset viewer.