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:
Philippe Houdoin
2007-01-14 21:58:19 +00:00
parent 6709571e18
commit af1c1a0a03
2 changed files with 42 additions and 20 deletions
+3 -3
View File
@@ -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;