MCPcopy Create free account
hub / github.com/apache/mesos / createCpuIsolator

Function createCpuIsolator

src/examples/test_isolator_module.cpp:46–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44
45
46static Isolator* createCpuIsolator(const Parameters& parameters)
47{
48 Flags flags;
49 Try<Isolator*> result = PosixCpuIsolatorProcess::create(flags);
50 if (result.isError()) {
51 return nullptr;
52 }
53 return result.get();
54}
55
56
57static Isolator* createMemIsolator(const Parameters& parameters)

Callers

nothing calls this directly

Calls 3

createFunction · 0.70
isErrorMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected