ADT
arm-eh
ast-experimental
enum
forall-pointer-decay
jacob/cs343-translation
new-ast-unique-expr
pthread-emulation
qualifiedEnum
Last change
on this file since adf34b3 was 29185fc, checked in by Thierry Delisle <tdelisle@…>, 5 years ago |
Working towards allowing different thread frameworks to be picked from the command line
|
-
Property mode
set to
100644
|
File size:
455 bytes
|
Line | |
---|
1 | #pragma once
|
---|
2 |
|
---|
3 | namespace thrdlib {
|
---|
4 | typedef void * thread_t;
|
---|
5 |
|
---|
6 | //--------------------
|
---|
7 | // Basic thread support
|
---|
8 | extern thread_t (*create)( void (*main)( thread_t ) );
|
---|
9 | extern void (*join)( thread_t handle );
|
---|
10 | extern void (*park)( thread_t handle );
|
---|
11 | extern void (*unpark)( thread_t handle );
|
---|
12 | extern void (*yield)( void ) ;
|
---|
13 |
|
---|
14 | //--------------------
|
---|
15 | // Basic kernel features
|
---|
16 | extern void init( const char * name, int procs );
|
---|
17 | extern void clean( void );
|
---|
18 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.