source: doc/theses/thierry_delisle_PhD/code/readQ_example/thrdlib/thread.hpp @ 72b1800

arm-ehenumforall-pointer-decayjacob/cs343-translationnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since 72b1800 was 72b1800, checked in by Thierry Delisle <tdelisle@…>, 2 years ago

Some previous in progress work.
Commited only so it stops showing in my git status.

  • Property mode set to 100644
File size: 421 bytes
RevLine 
[29185fc]1#pragma once
2
3namespace thrdlib {
4        typedef void * thread_t;
5
6        //--------------------
7        // Basic thread support
[72b1800]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 ) ;
[29185fc]13
14        //--------------------
15        // Basic kernel features
[72b1800]16        extern void init( int procs );
[29185fc]17        extern void clean( void );
18};
Note: See TracBrowser for help on using the repository browser.