MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / ending

Method ending

src/jrd/ThreadCollect.h:62–78  ·  view source on GitHub ↗

put thread into completion wait queue when it finished running

Source from the content-addressed store, hash-verified

60
61 // put thread into completion wait queue when it finished running
62 void ending(Thread&& thd)
63 {
64 Firebird::MutexLockGuard g(threadsMutex, FB_FUNCTION);
65
66 const Thread::Mark mark(thd);
67
68 for (auto& n : threads)
69 {
70 if (mark == n.thread)
71 {
72 n.ending = true;
73 return;
74 }
75 }
76
77 threads.push_back(Thrd(std::move(thd), true));
78 }
79
80 void ending(Thread::Mark& m)
81 {

Callers 2

attachmentShutdownThreadFunction · 0.80
runMethod · 0.80

Calls 3

ThrdClass · 0.85
moveFunction · 0.50
push_backMethod · 0.45

Tested by

no test coverage detected