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

Method set

src/linux/capabilities.cpp:167–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165
166
167void ProcessCapabilities::set(
168 const Type& type,
169 const std::set<Capability>& capabilities)
170{
171 switch (type) {
172 case EFFECTIVE: effective = capabilities; return;
173 case PERMITTED: permitted = capabilities; return;
174 case INHERITABLE: inheritable = capabilities; return;
175 case BOUNDING: bounding = capabilities; return;
176 case AMBIENT: ambient = capabilities; return;
177 }
178
179 UNREACHABLE();
180}
181
182
183void ProcessCapabilities::add(

Callers 10

executeMethod · 0.45
_listenMethod · 0.45
freezeMethod · 0.45
thawMethod · 0.45
finishedMethod · 0.45
removedMethod · 0.45
__destroyFunction · 0.45
getMethod · 0.45
runMethod · 0.45
checkMethod · 0.45

Calls 12

CapabilityEnum · 0.85
ErrnoErrorClass · 0.85
toCapabilityBitsetFunction · 0.85
NothingClass · 0.85
setEffectiveMethod · 0.80
setPermittedMethod · 0.80
setInheritableMethod · 0.80
ErrorFunction · 0.50
emptyMethod · 0.45
getMethod · 0.45
sizeMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected