Ion and Philipp's table retries (#10)

* Ion and Philipp's table retries

* Refactor the retry struct:
- Rename it from retry_struct to retry_info
- Retry information contains the failure callback, not the retry callback
- All functions take in retry information as an arg instead of its expanded fields

* Rename cb -> callback

* Remove prints

* Fix compiler warnings

* Change some CHECKs to greatest ASSERTs

* Key outstanding callbacks hash table with timer ID instead of callback data pointer

* Use the new retry API for table commands

* Memory cleanup in plasma unit tests

* fix Robert's comments

* add valgrind for common
This commit is contained in:
Ion
2016-10-29 15:22:33 -07:00
committed by Philipp Moritz
parent 84c581cf47
commit ee3718c80c
23 changed files with 1921 additions and 247 deletions
+9
View File
@@ -11,4 +11,13 @@ task_spec *example_task(void) {
return task;
}
task_instance *example_task_instance(void) {
task_iid iid = globally_unique_id();
task_spec *spec = example_task();
task_instance *instance =
make_task_instance(iid, spec, TASK_STATUS_WAITING, NIL_ID);
free_task_spec(spec);
return instance;
}
#endif