MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / myThread

Function myThread

thread/test/test-multi-vcpu-locking.cpp:53–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53static void myThread(int tid) {
54 LOG_INFO("thread ` starting", tid);
55 while (running) {
56 for (int i = 0; i < nMutexes; i++) {
57 timedLock(mutexes[i], i);
58 }
59 }
60}
61
62TEST(multi_vcpu_locking, long_time_acquisition_should_abort) {
63 int ret = photon::init(photon::INIT_EVENT_DEFAULT, photon::INIT_IO_NONE);

Callers

nothing calls this directly

Calls 1

timedLockFunction · 0.85

Tested by

no test coverage detected