+5
-5
@@ -3,12 +3,12 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
struct CgeThreadContext {
|
||||
CgeThreadCallback callback;
|
||||
CgeThreadCb callback;
|
||||
void *data;
|
||||
};
|
||||
|
||||
static unsigned __stdcall threadRun(void *context) {
|
||||
CgeThreadCallback callback;
|
||||
CgeThreadCb callback;
|
||||
void *data;
|
||||
|
||||
callback = ((struct CgeThreadContext *)context)->callback;
|
||||
@@ -18,8 +18,8 @@ static unsigned __stdcall threadRun(void *context) {
|
||||
_endthreadex(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;
|
||||
|
||||
context = malloc(sizeof(*context));
|
||||
@@ -42,7 +42,7 @@ static int threadInit(CgeThread *thread, size_t stack,
|
||||
return 1;
|
||||
}
|
||||
|
||||
CgeThread *CgeThreadNew(size_t stack, CgeThreadCallback callback, void *data,
|
||||
CgeThread *CgeThreadNew(size_t stack, CgeThreadCb callback, void *data,
|
||||
int *result) {
|
||||
CgeThread *thread;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user