38 # include <dsn/tool-api/task.h> 39 # include <dsn/utility/dlib.h> 45 class task_worker_pool;
49 # define DSN_INVALID_FILE_HANDLE ((dsn_handle_t)(uintptr_t)0) 51 # define DSN_INVALID_FILE_HANDLE ((dsn_handle_t)(uintptr_t)-1) 66 return new T(disk, inner_provider);
73 virtual ~aio_provider() {}
74 DSN_API service_node* node()
const;
77 virtual dsn_handle_t open(
const char* file_name,
int flag,
int pmode) = 0;
86 DSN_API
void complete_io(
aio_task* aio,
error_code err, uint32_t bytes,
int delay_milliseconds = 0);
Definition: auto_codes.h:303
Definition: aio_provider.h:61
Definition: task_spec.h:184