/[svn]/linuxsampler/trunk/src/common/Condition.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/common/Condition.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1318 by schoenebeck, Mon Jun 11 10:06:52 2007 UTC revision 1319 by schoenebeck, Mon Sep 3 23:59:10 2007 UTC
# Line 58  class Condition : public Mutex { Line 58  class Condition : public Mutex {
58           *           *
59           * @e Note: If you don't provide a timeout value or if you provide a           * @e Note: If you don't provide a timeout value or if you provide a
60           * timeout value of exactly 0s and 0ns, then this call will block           * timeout value of exactly 0s and 0ns, then this call will block
61           * without any timeout!           * without any timeout, or in other words: @e infinity!
62           *           *
63           * @param bCondition         - block in case of this condition           * @param bCondition         - block in case of this condition
64           * @param TimeoutSeconds     - optional: max. wait time in seconds           * @param TimeoutSeconds     - optional: max. wait time in seconds
# Line 76  class Condition : public Mutex { Line 76  class Condition : public Mutex {
76           *           *
77           * @e Note: If you don't provide a timeout value or if you provide a           * @e Note: If you don't provide a timeout value or if you provide a
78           * timeout value of exactly 0s and 0ns, then this call will block           * timeout value of exactly 0s and 0ns, then this call will block
79           * without any timeout!           * without any timeout, or in other words: @e infinity!
80           *           *
81           * @param bCondition         - block in case of this condition           * @param bCondition         - block in case of this condition
82           * @param TimeoutSeconds     - optional: max. wait time in seconds           * @param TimeoutSeconds     - optional: max. wait time in seconds
# Line 99  class Condition : public Mutex { Line 99  class Condition : public Mutex {
99          void Set(bool bCondition);          void Set(bool bCondition);
100    
101          /**          /**
102           * Returns the current boolean state of this condition object.           * Returns the current boolean state of this condition object. This
103             * method never blocks, it returns immediately and doesn't use any
104             * system calls.
105             *
106           * @e Caution: this method is not thread safe! If you need to use           * @e Caution: this method is not thread safe! If you need to use
107           * the condition state in a thread critical context you must call           * the condition state in a thread critical context you must call
108           * @c Lock() and @c Unlock() respectively by yourself!           * @c Lock() and @c Unlock() respectively by yourself!

Legend:
Removed from v.1318  
changed lines
  Added in v.1319

  ViewVC Help
Powered by ViewVC