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 72a3aff was 038110a, checked in by Thierry Delisle <tdelisle@…>, 5 years ago |
Fixed typos and added thread/monitor/coroutine wrapper for gdb
|
-
Property mode
set to
100644
|
File size:
999 bytes
|
Rev | Line | |
---|
[bb662027] | 1 | //
|
---|
| 2 | // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo
|
---|
| 3 | //
|
---|
| 4 | // The contents of this file are covered under the licence agreement in the
|
---|
| 5 | // file "LICENCE" distributed with Cforall.
|
---|
| 6 | //
|
---|
| 7 | // clib/cfathread.h --
|
---|
| 8 | //
|
---|
| 9 | // Author : Thierry Delisle
|
---|
| 10 | // Created On : Tue Sep 22 15:31:20 2020
|
---|
| 11 | // Last Modified By :
|
---|
| 12 | // Last Modified On :
|
---|
| 13 | // Update Count :
|
---|
| 14 | //
|
---|
| 15 |
|
---|
| 16 | #include "stddef.h"
|
---|
| 17 | #include "invoke.h"
|
---|
| 18 |
|
---|
[038110a] | 19 | #if defined(__cforall) || defined(__cplusplus)
|
---|
[bb662027] | 20 | extern "C" {
|
---|
| 21 | #endif
|
---|
| 22 | //--------------------
|
---|
| 23 | // Basic types
|
---|
| 24 | struct cfathread_CRunner_t;
|
---|
| 25 | typedef struct cfathread_CRunner_t * cfathread_t;
|
---|
| 26 |
|
---|
| 27 | //--------------------
|
---|
| 28 | // Basic thread support
|
---|
| 29 | cfathread_t cfathread_create( void (*main)( cfathread_t ) );
|
---|
| 30 | void cfathread_join( cfathread_t );
|
---|
| 31 |
|
---|
| 32 | void cfathread_park( void );
|
---|
| 33 | void cfathread_unpark( cfathread_t );
|
---|
| 34 | void cfathread_yield( void );
|
---|
| 35 |
|
---|
| 36 | //--------------------
|
---|
| 37 | // Basic kernel features
|
---|
| 38 | void cfathread_setproccnt( int );
|
---|
| 39 |
|
---|
| 40 |
|
---|
[038110a] | 41 | #if defined(__cforall) || defined(__cplusplus)
|
---|
[bb662027] | 42 | }
|
---|
| 43 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.