summaryrefslogtreecommitdiffstats
path: root/core/Thread.h
diff options
context:
space:
mode:
authorhandbrake <[email protected]>2006-01-14 13:30:07 +0000
committerhandbrake <[email protected]>2006-01-14 13:30:07 +0000
commit755fee5744c3704666a875fc09dc982aded7f783 (patch)
tree6dcb37dc59f66e20ca7ea0b22752b40533e69ad0 /core/Thread.h
parentb69e82fd960103c41979e00beb9b1c9fac78083b (diff)
HandBrake 0.6.0
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@13 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'core/Thread.h')
-rw-r--r--core/Thread.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/core/Thread.h b/core/Thread.h
index 7f975d84b..bf343214d 100644
--- a/core/Thread.h
+++ b/core/Thread.h
@@ -1,4 +1,4 @@
-/* $Id: Thread.h,v 1.9 2004/02/19 17:59:13 titer Exp $
+/* $Id: Thread.h,v 1.10 2004/03/16 16:14:03 titer Exp $
This file is part of the HandBrake source code.
Homepage: <http://handbrake.m0k.org/>.
@@ -93,11 +93,11 @@ static inline void HBLockUnlock( HBLock * l )
struct HBCond
{
#if defined( HB_BEOS )
- int thread;
+ int thread;
#elif defined( HB_MACOSX ) || defined( HB_LINUX )
- pthread_cond_t cond;
+ pthread_cond_t cond;
#elif defined( HB_CYGWIN )
- /* TODO */
+ HANDLE event;
#endif
};
@@ -113,7 +113,8 @@ static inline void HBCondWait( HBCond * c, HBLock * lock )
#elif defined( HB_MACOSX ) || defined( HB_LINUX )
pthread_cond_wait( &c->cond, &lock->mutex );
#elif defined( HB_CYGWIN )
- /* TODO */
+ SignalObjectAndWait( lock->mutex, c->event, INFINITE, FALSE );
+ WaitForSingleObject( lock->mutex, INFINITE );
#endif
}
@@ -136,7 +137,7 @@ static inline void HBCondSignal( HBCond * c )
#elif defined( HB_MACOSX ) || defined( HB_LINUX )
pthread_cond_signal( &c->cond );
#elif defined( HB_CYGWIN )
- /* TODO */
+ PulseEvent( c->event );
#endif
}