lock is called by RenderWindow during RenderWindow and HandleEvent when updating all widgets and rendering the screen. Any outside access to window contents / scene must acquire this lock first. In general, use AsyncLock to do this.
()
| 608 | // Any outside access to window contents / scene must acquire this |
| 609 | // lock first. In general, use AsyncLock to do this. |
| 610 | func (rc *renderContext) lock() { |
| 611 | rc.mu.Lock() |
| 612 | } |
| 613 | |
| 614 | // unlock must be called for each Lock, when done. |
| 615 | func (rc *renderContext) unlock() { |
no test coverage detected