MCPcopy Create free account
hub / github.com/ChiyukiGana/Quickinput / exec

Method exec

source/src/scriptinterpreter.cpp:803–811  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

801{
802 QiFunc_sleep() : QiFunc(1) {}
803 QiVar exec(const std::vector<QiVar>& args, QiScriptInterpreter* inter) const override
804 {
805 long long ms = args[0].toInteger();
806 inter->thisMutex()->lock();
807 QiWorker* worker = inter->worker();
808 worker ? worker->sleep(ms) : Sleep(ms);
809 inter->thisMutex()->unlock();
810 return {};
811 }
812};
813struct QiFunc_exit : public QiFunc
814{

Callers

nothing calls this directly

Calls 6

toIntegerMethod · 0.80
thisMutexMethod · 0.80
lockMethod · 0.45
workerMethod · 0.45
sleepMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected