- Timestamp:
- Oct 1, 2020, 3:54:39 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum, stuck-waitfor-destruct
- Children:
- 91131689
- Parents:
- ebec8ed (diff), dd53f75 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- doc/theses/thierry_delisle_PhD/code/readQ_example/thrdlib
- Files:
-
- 5 added
- 1 deleted
- 1 moved
-
Makefile (added)
-
cforall.cpp (added)
-
fibre.cpp (added)
-
pthread.cpp (moved) (moved from doc/theses/thierry_delisle_PhD/code/readQ_example/thrdlib/thread_pthread.h ) (3 diffs)
-
thread.cpp (added)
-
thread.h (deleted)
-
thread.hpp (added)
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/thierry_delisle_PhD/code/readQ_example/thrdlib/pthread.cpp
rebec8ed r615767b 1 #pragma once2 3 1 #include <pthread.h> 4 2 #include <errno.h> … … 56 54 #undef CHECKED 57 55 58 #if defined(__cforall) || defined(__cpluplus) 56 //-------------------- 57 // Basic types 58 struct pthread_runner_t { 59 pthread_t handle; 60 __bin_sem_t sem; 61 }; 62 typedef pthread_runner_t * thread_t; 63 64 static_assert(sizeof(thread_t) == sizeof(void*), "thread_t musst be of same size as void*"); 65 59 66 extern "C" { 60 #endif61 //--------------------62 // Basic types63 struct pthread_runner_t {64 pthread_t handle;65 __bin_sem_t sem;66 };67 typedef pthread_runner_t * thread_t;68 69 67 //-------------------- 70 68 // Basic thread support … … 98 96 //-------------------- 99 97 // Basic kernel features 100 void thrdlib_setproccnt( int ) { 101 102 } 103 104 105 #if defined(__cforall) || defined(__cpluplus) 98 void thrdlib_init( int ) {} 106 99 } 107 #endif
Note:
See TracChangeset
for help on using the changeset viewer.