MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Cancel

Method Cancel

Source/Engine/Threading/Task.cpp:27–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27void Task::Cancel()
28{
29 if (Platform::AtomicRead(&_cancelFlag) == 0)
30 {
31 // Send event
32 OnCancel();
33
34 // Cancel child
35 if (_continueWith)
36 _continueWith->Cancel();
37 }
38}
39
40bool Task::Wait(double timeoutMilliseconds) const
41{

Callers 12

OnCancelMethod · 0.45
CancelStreamingTasksMethod · 0.45
ReleaseResourcesMethod · 0.45
OnSceneUnloadingFunction · 0.45
CancelStreamingTasksMethod · 0.45
CancelAllFunction · 0.45
CancelAllMethod · 0.45
DisposeMethod · 0.45
CancelStreamingMethod · 0.45
CancelStreamingTasksMethod · 0.45
unloadMethod · 0.45

Calls 1

AtomicReadFunction · 0.50

Tested by

no test coverage detected