信号槽使用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

@@ -20,7 +20,7 @@ typedef struct {
typedef struct {
pthread_mutex_t lock; /* 互斥锁定义 */
sem_t sem;
pthread_t tid;
pthread_t *tid;
slot_list_with_pars *slot_head;
} mythread_t;
@@ -41,7 +41,7 @@ typedef struct {
void send_slot_fun(mythread_t* self, slot_list_with_pars* slot_p);
mythread_t* sigthread_init();
mythread_t* sigthread_init(const char* name);
void _connect(void* sig_obj, void* sig_fun, mythread_t* thread, void* slot_obj, const char* slot_fun);