|
|
@ -32,14 +32,28 @@ EXTERN void all_cases_prebuild_async(executor_t executor, notifier_t callback); |
|
|
|
/// not completed, non-0 otherwise.
|
|
|
|
EXTERN int is_all_cases_prebuild_available(); |
|
|
|
|
|
|
|
/// Perform the build of all_cases, it is blocking, and will return directly
|
|
|
|
/// if completed.
|
|
|
|
EXTERN void all_cases_build(); |
|
|
|
|
|
|
|
/// Execute the asynchronous build of all_cases, the task will be sent to the
|
|
|
|
/// executor, and the callback will be called after completion. Even if the
|
|
|
|
/// data is ready, the callback will still be triggered.
|
|
|
|
EXTERN void all_cases_build_async(executor_t executor, notifier_t callback); |
|
|
|
|
|
|
|
EXTERN void all_cases_parallel_build(executor_t executor); |
|
|
|
/// Build all_cases in parallel, the tasks will be split and sent to the
|
|
|
|
/// executor, you can put them on different threads to work, but note that the
|
|
|
|
/// task can only be executed once, otherwise it will lead to unknown
|
|
|
|
/// consequences, the function will be blocked until all mission completed.
|
|
|
|
EXTERN void all_cases_build_parallel(executor_t executor); |
|
|
|
|
|
|
|
EXTERN void all_cases_parallel_build_async(executor_t executor, notifier_t callback); |
|
|
|
/// Similar to `all_cases_build_parallel`, but it is non-blocking. The callback
|
|
|
|
/// will be triggered after the build is completed. Note that the callback will
|
|
|
|
/// still be triggered even if the data is ready.
|
|
|
|
EXTERN void all_cases_build_parallel_async(executor_t executor, notifier_t callback); |
|
|
|
|
|
|
|
/// Returns whether the all_cases is ready, 0 means not completed, non-0 means
|
|
|
|
/// the data is ready.
|
|
|
|
EXTERN int is_all_cases_available(); |
|
|
|
|
|
|
|
//extern const uint32_t ALL_CASES_SIZE;
|
|
|
|