Synchronize enqueues func f to be called some time later by the main goroutine from inside a message loop.
(f func())
| 2077 | // Synchronize enqueues func f to be called some time later by the main |
| 2078 | // goroutine from inside a message loop. |
| 2079 | func (wb *WindowBase) Synchronize(f func()) { |
| 2080 | wb.group.Synchronize(f) |
| 2081 | |
| 2082 | win.PostMessage(wb.hWnd, syncMsgId, 0, 0) |
| 2083 | } |
| 2084 | |
| 2085 | // synchronizeLayout causes the given layout computations to be applied |
| 2086 | // later by the message loop running on the group's thread. |
nothing calls this directly
no test coverage detected