MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / copyTLS

Method copyTLS

Engine/TLSHolder.cpp:85–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85void
86AppTLS::copyTLS(QThread* fromThread,
87 QThread* toThread)
88{
89 if ( (fromThread == toThread) || !fromThread || !toThread ) {
90 return;
91 }
92
93 copyAbortInfo(fromThread, toThread);
94
95 QReadLocker k(&_objectMutex);
96 const TLSObjects& objectsCRef = _object->objects; // take a const ref, since it's a read lock
97 for (TLSObjects::const_iterator it = objectsCRef.begin();
98 it != objectsCRef.end(); ++it) {
99 TLSHolderBaseConstPtr p = (*it).lock();
100 if (p) {
101 p->copyTLS(fromThread, toThread);
102 }
103 }
104}
105
106void
107AppTLS::softCopy(QThread* fromThread,

Callers 1

tiledRenderingFunctorMethod · 0.45

Calls 4

copyAbortInfoFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
lockMethod · 0.45

Tested by

no test coverage detected