1598 |
1598 |
1599 void nsapi_function_return(Session *sn, Request *rq, int ret); |
1599 void nsapi_function_return(Session *sn, Request *rq, int ret); |
1600 |
1600 |
1601 // threadpool |
1601 // threadpool |
1602 threadpool_t* threadpool_new(int min, int max); |
1602 threadpool_t* threadpool_new(int min, int max); |
|
1603 int threadpool_start(threadpool_t *pool); |
1603 void* threadpool_func(void *data); |
1604 void* threadpool_func(void *data); |
1604 threadpool_job* threadpool_get_job(threadpool_t *pool); |
1605 threadpool_job* threadpool_get_job(threadpool_t *pool); |
1605 void threadpool_run(threadpool_t *pool, job_callback_f func, void *data); |
1606 void threadpool_run(threadpool_t *pool, job_callback_f func, void *data); |
1606 |
1607 |
1607 int event_pollin(EventHandler *ev, SYS_NETFD fd, Event *event); |
1608 int event_pollin(EventHandler *ev, SYS_NETFD fd, Event *event); |