mdbx-testing: тестирование парковки транзакций.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev)
2024-07-10 22:31:41 +03:00
parent ec0ada7b8c
commit 2311706272
10 changed files with 120 additions and 7 deletions

View File

@@ -175,6 +175,10 @@ bool actor_config::osal_deserialize(const char *str, const char *end,
typedef std::pair<HANDLE, actor_status> child;
static std::unordered_map<mdbx_pid_t, child> children;
bool osal_multiactor_mode(void) {
return hProgressActiveEvent || hProgressPassiveEvent;
}
bool osal_progress_push(bool active) {
if (!children.empty()) {
if (!SetEvent(active ? hProgressActiveEvent : hProgressPassiveEvent))