Moved the include/osgTXP back into src/osgPlugins/txp as a seperate include directory is no longer required.

Removed the osgtxp demo as it is no longer required.
This commit is contained in:
Robert Osfield
2002-12-17 16:07:59 +00:00
parent ee3348afc9
commit c82927293e
54 changed files with 109 additions and 686 deletions

View File

@@ -0,0 +1,35 @@
#ifndef WAIT_BLOCK_H
#define WAIT_BLOCK_H
#ifndef WIN32
#include <pthread.h>
namespace osgTXP {
struct WaitBlock{
pthread_mutex_t mut;
pthread_cond_t cond;
WaitBlock()
{
pthread_mutex_init( &mut, 0L );
pthread_cond_init( &cond, 0L );
}
void wait()
{
pthread_mutex_lock( &mut );
pthread_cond_wait( &cond, &mut);
pthread_mutex_unlock(&mut);
}
void release()
{
pthread_mutex_lock( &mut );
pthread_cond_broadcast( &cond );
pthread_mutex_unlock( &mut );
}
};
}
#endif
#endif