ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/truck/Common/threads.hpp
(Generate patch)

Comparing Common/threads.hpp (file contents):
Revision 35 by douglas, 2008-02-29T19:05:18-08:00 vs.
Revision 36 by douglas, 2008-03-04T22:24:35-08:00

# Line 175 | Line 175 | public:
175                  CheckError(::pthread_cond_wait(&cond, lock));
176          }
177  
178 +        void Wait(const timespec &wait)
179 +        {
180 +                CheckError(::pthread_cond_timedwait(&cond, lock, &wait));
181 +        }
182 +
183          operator pthread_cond_t *() const
184          {
185                  return &cond;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines