mirror of
https://github.com/wassname/ray.git
synced 2026-09-11 12:43:20 +08:00
Init_table_callback now takes ownership of passed in data (#80)
* temp commit * Stuff * Ownership is now taken by init table callback * Fixed lint errors * Fixed travis warnings * Fixed spacing * add .gitkeep * fix global scheduler * Whitespace.
This commit is contained in:
committed by
Robert Nishihara
parent
61755bc168
commit
9a513363f9
@@ -13,7 +13,7 @@ void task_table_get_task(db_handle *db_handle,
|
||||
}
|
||||
|
||||
void task_table_add_task(db_handle *db_handle,
|
||||
task *task,
|
||||
OWNER task *task,
|
||||
retry_info *retry,
|
||||
task_table_done_callback done_callback,
|
||||
void *user_context) {
|
||||
@@ -22,7 +22,7 @@ void task_table_add_task(db_handle *db_handle,
|
||||
}
|
||||
|
||||
void task_table_update(db_handle *db_handle,
|
||||
task *task,
|
||||
OWNER task *task,
|
||||
retry_info *retry,
|
||||
task_table_done_callback done_callback,
|
||||
void *user_context) {
|
||||
@@ -41,7 +41,6 @@ void task_table_subscribe(db_handle *db_handle,
|
||||
void *user_context) {
|
||||
task_table_subscribe_data *sub_data =
|
||||
malloc(sizeof(task_table_subscribe_data));
|
||||
utarray_push_back(db_handle->callback_freelist, &sub_data);
|
||||
sub_data->node = node;
|
||||
sub_data->state_filter = state_filter;
|
||||
sub_data->subscribe_callback = subscribe_callback;
|
||||
|
||||
Reference in New Issue
Block a user