MCPcopy Create free account
hub / github.com/biometrics/openbr / init

Method init

openbr/plugins/core/processwrapper.cpp:597–608  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

595 }
596
597 void init()
598 {
599 processActive = false;
600 serialized.clear();
601 if (transform) {
602 QDataStream out(&serialized, QFile::WriteOnly);
603 transform->serialize(out);
604 tcount = Globals->parallelism;
605 counter.acquire(counter.available());
606 counter.release(this->concurrentCount);
607 }
608 }
609
610 static QSemaphore counter;
611 mutable int tcount;

Callers

nothing calls this directly

Calls 3

acquireMethod · 0.80
clearMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected