信号槽使用mythread

This commit is contained in:
2025-06-25 11:29:06 +08:00
parent b64401d556
commit 2cfdb4a84f
8 changed files with 43 additions and 101 deletions

View File

@@ -6,6 +6,10 @@
#include "exception.h"
#define FUNC_NAME_LEN 20
typedef struct _myth_def{
struct _myth_def *next;
struct _myth_def *last;
@@ -14,14 +18,15 @@ typedef struct _myth_def{
size_t id;
size_t end;
int (*func)(void *);
void *arg;
void* arg;
char name[FUNC_NAME_LEN];
}myth_def;
int myth_create(int (*func)(void *t),void *t);
pthread_t* myth_create(int (*func)(void *t),void *t,const char *name);
int myth_join();
myth_def *myth_self();