MCPcopy Create free account
hub / github.com/bloomberg/quantum / tryUpgradeToWriteImpl

Method tryUpgradeToWriteImpl

quantum/impl/quantum_read_write_mutex_impl.h:109–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109inline
110bool ReadWriteMutex::tryUpgradeToWriteImpl(bool* pendingUpgrade)
111{
112 bool rc;
113 if (pendingUpgrade) {
114 rc = _spinlock.tryUpgradeToWrite(*pendingUpgrade);
115 }
116 else {
117 rc = _spinlock.tryUpgradeToWrite();
118 }
119 if (rc)
120 {
121 _taskId = local::taskId();
122 }
123 return rc;
124}
125
126inline
127void ReadWriteMutex::unlockRead()

Callers

nothing calls this directly

Calls 2

taskIdFunction · 0.85
tryUpgradeToWriteMethod · 0.45

Tested by

no test coverage detected