MCPcopy Create free account
hub / github.com/PixarAnimationStudios/OpenUSD / Claim

Method Claim

pxr/exec/exec/compilerTaskSync.cpp:26–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24
25template <class KeyType>
26Exec_CompilerTaskSyncBase::ClaimResult
27Exec_CompilerTaskSync<KeyType>::Claim(
28 const KeyType &key,
29 Exec_CompilationTask *task)
30{
31 // Add the key to the map. If another task got to claiming it first, it's
32 // expected and safe for the key to already have an waitlist.
33 const auto &[iterator, inserted] = _waitlists.emplace(
34 std::piecewise_construct,
35 std::forward_as_tuple(key),
36 std::forward_as_tuple());
37 _Waitlist *const waitlist = &iterator->second;
38
39 return _Claim(waitlist, task);
40}
41
42template <class KeyType>
43Exec_CompilerTaskSyncBase::WaitResult

Callers 2

Calls 1

emplaceMethod · 0.45

Tested by

no test coverage detected