diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-04-29 10:04:56 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-04-29 10:04:56 +0200 |
commit | 7855893959b44d12f9e333278e325e49f47c5a9f (patch) | |
tree | 3e24dab57e32780a1600c534a635f5a942e23cac /src/worker.h | |
parent | make struct server opaque (diff) | |
download | cimple-7855893959b44d12f9e333278e325e49f47c5a9f.tar.gz cimple-7855893959b44d12f9e333278e325e49f47c5a9f.zip |
make struct worker opaque
Diffstat (limited to 'src/worker.h')
-rw-r--r-- | src/worker.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/worker.h b/src/worker.h index 0bf3e80..246fd43 100644 --- a/src/worker.h +++ b/src/worker.h @@ -15,15 +15,9 @@ struct settings { char *port; }; -struct worker { - int fd; +struct worker; - pthread_mutex_t task_mtx; - pthread_t task; - int task_active; -}; - -int worker_create(struct worker *, const struct settings *); +int worker_create(struct worker **, const struct settings *); void worker_destroy(struct worker *); int worker_main(struct worker *, int argc, char *argv[]); |