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

Method isShared

src/common/resources.cpp:1231–1237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1229
1230
1231bool Resources::isShared(const Resource& resource)
1232{
1233 CHECK(!resource.has_role()) << resource;
1234 CHECK(!resource.has_reservation()) << resource;
1235
1236 return resource.has_shared();
1237}
1238
1239
1240bool Resources::isAllocatedToRoleSubtree(

Callers 5

containsMethod · 0.45
operator==Method · 0.45
foreachFunction · 0.45
subtractMethod · 0.45
resources.cppFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected