MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / IsForkedSubProcess

Function IsForkedSubProcess

oneflow/core/platform/lib/pthread_fork.cpp:28–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26static bool is_fork = false;
27
28bool IsForkedSubProcess() { return is_fork; }
29static void SetIsForkedSubProcess() { is_fork = true; }
30
31namespace {

Callers 8

ReleaseTensorMethod · 0.85
set_current_seedMethod · 0.85
ReceiveMethod · 0.85
NotifyOrRunSchedulerMethod · 0.85
OnSchedulerThreadMethod · 0.85
ParallelForImplMethod · 0.85
MultiThreadLoopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected