Function mindspore::dataset::config::set_callback_timeout
Defined in File config.h
Function Documentation
-
bool mindspore::dataset::config::set_callback_timeout(int32_t timeout)
A function to set the default timeout (in seconds) for DSWaitedCallback. In case of a deadlock, the wait function will exit after the timeout period.
- Parameters
timeout – [in] Timeout (in seconds) to be used to end the wait in DSWaitedCallback in case of a deadlock.
- Returns
The callback timeout is set successfully or not.
样例// Set a new global configuration value for the timeout value. bool rc = config::set_callback_timeout(100);