kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit ed1e5e249e5ca382c04809f79701412dd9f7aeba
parent 80c0a4cb6e1135621b541fa4e4594f8dbbcc7bcf
Author: Joris Vink <joris@coders.se>
Date:   Mon, 30 Jun 2014 14:23:04 +0200

Sprinkle volatile

Diffstat:
includes/kore_tasks.h | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/includes/kore_tasks.h b/includes/kore_tasks.h @@ -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);