Changeset 21045
- Timestamp:
- 02/23/08 09:13:22 (9 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
juggler/trunk/modules/vapor/vpr/Thread/ThreadPool.h
r21043 r21045 100 100 } 101 101 102 /** 103 * Waits until all threads are done doing their work. 104 * 105 * @note This was renamed from \c barrier() in version 0.92.1 to deal with 106 * a case where that name is a preprocessor macro. 107 * 108 * @since 0.92.1 109 */ 110 void wait() 111 { 112 mFinishedLock.acquire(); // Get the lock that means threads done 113 mFinishedLock.release(); // Reset it to done 114 } 115 116 void printList() const; 117 118 private: 102 119 OneThread* addThread(); 103 120 … … 123 140 OneThread* getThread(); 124 141 125 /**126 * Waits until all threads are done doing their work.127 *128 * @note This was renamed from \c barrier() in version 0.92.1 to deal with129 * a case where that name is a preprocessor macro.130 *131 * @since 0.92.1132 */133 void wait()134 {135 mFinishedLock.acquire(); // Get the lock that means threads done136 mFinishedLock.release(); // Reset it to done137 }138 139 void printList() const;140 141 private:142 142 Semaphore mReadyThreads; /**< Count represents threads ready to work */ 143 143 Mutex mListLock; /**< Mutex control of threadList head */
