Changeset 126 in flair-src for trunk/lib/FlairCore/src/Semaphore.h


Ignore:
Timestamp:
01/17/17 10:47:02 (5 years ago)
Author:
Thomas Fuhrmann
Message:

Add timed semaphore and bool return

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairCore/src/Semaphore.h

    r118 r126  
    5151  *
    5252  * Lock the semaphore.
    53   *
     53  *
     54  * \param timeout The timeout, in nanoseconds.
    5455  */
    55   void GetSemaphore(void) const;
     56  bool GetSemaphore(Time timeout = TIME_INFINITE) const;
    5657
    5758  /*!
     
    6162  *
    6263  */
    63   void ReleaseSemaphore(void) const;
     64  bool ReleaseSemaphore(void) const;
    6465
    6566private:
Note: See TracChangeset for help on using the changeset viewer.