+5
-5
@@ -5,12 +5,12 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
struct CgeThreadContext {
|
||||
CgeThreadCallback callback;
|
||||
CgeThreadCb callback;
|
||||
void *data;
|
||||
};
|
||||
|
||||
static void *threadRun(void *context) {
|
||||
CgeThreadCallback callback;
|
||||
CgeThreadCb callback;
|
||||
void *data;
|
||||
|
||||
callback = ((struct CgeThreadContext *)context)->callback;
|
||||
@@ -20,8 +20,8 @@ static void *threadRun(void *context) {
|
||||
pthread_exit(0);
|
||||
}
|
||||
|
||||
static int threadInit(CgeThread *thread, size_t stack,
|
||||
CgeThreadCallback callback, void *data, int *result) {
|
||||
static int threadInit(CgeThread *thread, size_t stack, CgeThreadCb callback,
|
||||
void *data, int *result) {
|
||||
struct CgeThreadContext *context;
|
||||
int code;
|
||||
|
||||
@@ -54,7 +54,7 @@ static int threadInit(CgeThread *thread, size_t stack,
|
||||
return code == CGE_THREAD_EOK;
|
||||
}
|
||||
|
||||
CgeThread *CgeThreadNew(size_t stack, CgeThreadCallback callback, void *data,
|
||||
CgeThread *CgeThreadNew(size_t stack, CgeThreadCb callback, void *data,
|
||||
int *result) {
|
||||
CgeThread *thread;
|
||||
int code = CGE_THREAD_EOOM;
|
||||
|
||||
Reference in New Issue
Block a user