 |
PK_THREAD_clear_exclusion |
|
PK_ERROR_code_t PK_THREAD_clear_exclusion
(
--- received arguments ---
PK_THREAD_exclusion_t clear, --- type of exclusion to clear
--- returned arguments ---
PK_THREAD_exclusion_t *const exclusion, --- type of thread exclusion
PK_LOGICAL_t *const was_this_thread --- whether the calling thread
--- caused the exclusion
)
This function tries to clear an exclusion that may be preventing other threads
from entering Parasolid.
Specific Errors:
PK_ERROR_bad_thread Calling thread did not cause exclusion
PK_ERROR_fatal_error Cannot clear a fatal error
If clearing the exclusion was successful then 'exclusion' will be set to
PK_THREAD_exclusion_none. Otherwise, if the calling thread is not the thread
that caused the exclusion then 'was_this_thread' will be set to
PK_LOGICAL_false.
The value of 'clear' must be PK_THREAD_exclusion_serious_c. Fatal
exclusions cannot be cleared using this function.
This function can only be called when the modeller is started.