/* Definitions for Posix Threads (pthreads) */ #include <pthread.h>
typedef pthread_t nthread_t;
#define HAVE_THREAD 1
#elifdefined( HAVE_WIN32_THREAD )
/* Definitions for Win32 NT Threads */ typedef DWORD nthread_t;
#define HAVE_THREAD 1
#else
/* Definitions for no threads */ typedefint nthread_t;
#undef HAVE_THREAD
#endif
// Forward declaration struct thread_Settings;
#include"Condition.h" #include"Settings.hpp"
// initialize or destroy the thread subsystem void thread_init( ); void thread_destroy( );
// start or stop a thread executing void thread_start( struct thread_Settings* thread ); void thread_stop( struct thread_Settings* thread );
/* wait for this or all threads to complete */ void thread_joinall( void );
int thread_numuserthreads( void );
// set a thread to be ignorable, so joinall won't wait on it void thread_setignore( void ); void thread_unsetignore( void );
// Used for threads that may never terminate (ie Listener Thread) void thread_register_nonterm( void ); void thread_unregister_nonterm( void ); int thread_release_nonterm( int force );
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.