fix build on windows port

This commit is contained in:
RoeyMaor 2022-04-22 22:30:44 +03:00
parent 6a6cfae750
commit 1ba4288338
3 changed files with 9 additions and 6 deletions

View File

@ -238,11 +238,12 @@ int64_t GetProcessID();
bool GenerateRfcUuid(std::string* output);
// Is called in the context of background threads.
// Blocks the termination handlers of pthread from running in the context of the calling thread.
// We block various termination signals (other than SIGKILL which we both cannot and do not want to block)
// in the background threads where we do not wish our environment destructors to be called.
// If the environment destructor is called inside a background thread we will encounter undefined behaviour,
// such as a thread waiting on itself.
// Blocks the termination handlers of pthread from running in the context of the
// calling thread. We block various termination signals (other than SIGKILL
// which we both cannot and do not want to block) in the background threads
// where we do not wish our environment destructors to be called. If the
// environment destructor is called inside a background thread we will encounter
// undefined behaviour, such as a thread waiting on itself.
extern void BlockTerminationSignals();
} // namespace port

View File

@ -297,6 +297,8 @@ bool GenerateRfcUuid(std::string* output) {
return true;
}
void BlockTerminationSignals() {}
} // namespace port
} // namespace ROCKSDB_NAMESPACE

View File

@ -362,7 +362,7 @@ int64_t GetProcessID();
// true on success or false on failure.
bool GenerateRfcUuid(std::string* output);
void BlockTerminationSignals(){}
extern void BlockTerminationSignals();
} // namespace port