MCPcopy Create free account
hub / github.com/cogentcore/core / lock

Method lock

core/renderwindow.go:610–612  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

608// Any outside access to window contents / scene must acquire this
609// lock first. In general, use AsyncLock to do this.
610func (rc *renderContext) lock() {
611 rc.mu.Lock()
612}
613
614// unlock must be called for each Lock, when done.
615func (rc *renderContext) unlock() {

Callers 9

AsyncLockMethod · 0.80
newRenderWindowFunction · 0.80
closeReqMethod · 0.80
handleEventMethod · 0.80
handleWindowEventsMethod · 0.80
renderWindowMethod · 0.80
runPopupAsyncMethod · 0.80
closePopupAsyncMethod · 0.80
handleLongMethod · 0.80

Calls 1

LockMethod · 0.65

Tested by

no test coverage detected