MCPcopy Create free account
hub / github.com/KLayout/klayout / wakeup

Method wakeup

src/laybasic/laybasic/layRedrawThread.cc:415–434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413}
414
415void
416RedrawThread::wakeup ()
417{
418 bool send_event = false;
419
420 // wakeup the main thread on the initial update ..
421 m_initial_wait_lock.lock ();
422 if (m_initial_update) {
423 m_initial_wait_cond.wakeAll ();
424 m_initial_update = false;
425 } else {
426 send_event = true;
427 }
428 m_initial_wait_lock.unlock ();
429
430 // otherwise post an event to actually draw
431 if (send_event) {
432 mp_canvas->signal_transfer_done ();
433 }
434}
435
436} // namespace lay

Callers

nothing calls this directly

Calls 4

wakeAllMethod · 0.80
lockMethod · 0.45
unlockMethod · 0.45
signal_transfer_doneMethod · 0.45

Tested by

no test coverage detected