| 413 | } |
| 414 | |
| 415 | void |
| 416 | RedrawThread::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 |
nothing calls this directly
no test coverage detected