MCPcopy Create free account
hub / github.com/DISTORTEC/distortos / getThread

Method getThread

source/threads/ThreadIdentifier.cpp:24–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22+---------------------------------------------------------------------------------------------------------------------*/
23
24Thread* ThreadIdentifier::getThread() const
25{
26 if (threadControlBlock_ == nullptr || threadControlBlock_->getSequenceNumber() != sequenceNumber_)
27 return nullptr;
28
29 return &threadControlBlock_->getOwner();
30}
31
32} // namespace distortos

Callers 3

phase5Function · 0.80
operator==Function · 0.80
operator<Function · 0.80

Calls 2

getSequenceNumberMethod · 0.80
getOwnerMethod · 0.80

Tested by 1

phase5Function · 0.64