mirror of https://git.kore.io/kore.git
Sprinkle volatile
This commit is contained in:
parent
80c0a4cb6e
commit
ed1e5e249e
|
@ -25,11 +25,12 @@ struct http_request;
|
|||
|
||||
struct kore_task {
|
||||
u_int8_t type;
|
||||
u_int8_t state;
|
||||
volatile u_int8_t state;
|
||||
volatile int result;
|
||||
|
||||
struct http_request *req;
|
||||
int fds[2];
|
||||
void (*entry)(struct kore_task *);
|
||||
int (*entry)(struct kore_task *);
|
||||
|
||||
struct kore_task_thread *thread;
|
||||
TAILQ_ENTRY(kore_task) list;
|
||||
|
@ -54,7 +55,7 @@ void kore_task_handle(struct kore_task *, int);
|
|||
void kore_task_bind_request(struct kore_task *,
|
||||
struct http_request *);
|
||||
void kore_task_create(struct kore_task **,
|
||||
void (*entry)(struct kore_task *));
|
||||
int (*entry)(struct kore_task *));
|
||||
|
||||
u_int32_t kore_task_channel_read(struct kore_task *, void *, u_int32_t);
|
||||
void kore_task_channel_write(struct kore_task *, void *, u_int32_t);
|
||||
|
|
Loading…
Reference in New Issue