- File:
-
- 1 edited
-
src/libcfa/concurrency/invoke.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/invoke.c
r348006f r7b2c2c5f 29 29 30 30 extern void __suspend_internal(void); 31 extern void __thread_signal_termination(struct thread _desc*);31 extern void __thread_signal_termination(struct thread*); 32 32 33 33 void CtxInvokeCoroutine( 34 34 void (*main)(void *), 35 struct coroutine _desc*(*get_coroutine)(void *),35 struct coroutine *(*get_coroutine)(void *), 36 36 void *this 37 37 ) { 38 38 // LIB_DEBUG_PRINTF("Invoke Coroutine : Received %p (main %p, get_c %p)\n", this, main, get_coroutine); 39 39 40 struct coroutine _desc* cor = get_coroutine( this );40 struct coroutine* cor = get_coroutine( this ); 41 41 42 42 if(cor->state == Primed) { … … 57 57 void CtxInvokeThread( 58 58 void (*main)(void *), 59 struct thread _desc*(*get_thread)(void *),59 struct thread *(*get_thread)(void *), 60 60 void *this 61 61 ) { 62 62 __suspend_internal(); 63 63 64 struct thread _desc* thrd = get_thread( this );65 struct coroutine _desc* cor = &thrd->c;64 struct thread* thrd = get_thread( this ); 65 struct coroutine* cor = &thrd->c; 66 66 cor->state = Active; 67 67 … … 79 79 void CtxStart( 80 80 void (*main)(void *), 81 struct coroutine _desc*(*get_coroutine)(void *),81 struct coroutine *(*get_coroutine)(void *), 82 82 void *this, 83 83 void (*invoke)(void *)
Note:
See TracChangeset
for help on using the changeset viewer.