mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-25 22:44:05 +00:00
Add documentation for unschedFunction
Summary: Documenting the unschedFunction parameter to Schedule as requested by Michael Kolupaev. Test Plan: build, unit test Reviewers: sdong, IslamAbdelRahman Reviewed By: IslamAbdelRahman Subscribers: kolmike, dhruba Differential Revision: https://reviews.facebook.net/D52089
This commit is contained in:
parent
167fb919a5
commit
6b2a3ac92c
|
@ -244,6 +244,8 @@ class Env {
|
|||
// added to the same Env may run concurrently in different threads.
|
||||
// I.e., the caller may not assume that background work items are
|
||||
// serialized.
|
||||
// When the UnSchedule function is called, the unschedFunction
|
||||
// registered at the time of Schedule is invoked with arg as a parameter.
|
||||
virtual void Schedule(void (*function)(void* arg), void* arg,
|
||||
Priority pri = LOW, void* tag = nullptr,
|
||||
void (*unschedFunction)(void* arg) = 0) = 0;
|
||||
|
|
Loading…
Reference in a new issue