Renamed the public api to underline the DPC *queue* mechanism handled.
Pending DPCs at queue death time are now called too, to avoid possible leaks. Meanwhile, queue_dpc() will refuse to add another DPC and returns B_CANCELLED. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19798 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -18,9 +18,9 @@ typedef void (*dpc_func) (void *arg);
|
||||
|
||||
typedef struct {
|
||||
module_info info;
|
||||
void * (*new_dpc_thread)(const char *name, long priority, int queue_size);
|
||||
status_t (*delete_dpc_thread)(void *thread);
|
||||
status_t (*queue_dpc)(void *thread, dpc_func dpc_name, void *arg);
|
||||
void * (*new_dpc_queue)(const char *name, long priority, int queue_size);
|
||||
status_t (*delete_dpc_queue)(void *queue);
|
||||
status_t (*queue_dpc)(void *queue, dpc_func dpc_name, void *arg);
|
||||
} dpc_module_info;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user