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

Method Lock

system/window.go:185–185  ·  view source on GitHub ↗

Lock attempts to grab the overall window Mutex lock and returns true if the window is still open and ready for business. Otherwise, it might have been closed and any further use should be abandoned. Do this before any use of window resources (eg. rendering to the Drawer).

()

Source from the content-addressed store, hash-verified

183 // abandoned. Do this before any use of window resources
184 // (eg. rendering to the Drawer).
185 Lock() bool
186
187 // Unlock unlocks the Mutex. Must be called after Lock() is done.
188 Unlock()

Callers 15

initMethod · 0.65
InitMethod · 0.65
FontMethod · 0.65
DeleteFontMethod · 0.65
UpdateFontsAvailMethod · 0.65
FontFaceNameFunction · 0.65
RenderMethod · 0.65
AppendStringMethod · 0.65
SetRunePosLRMethod · 0.65
SetRunePosTBMethod · 0.65
SetRunePosTBRotMethod · 0.65
ConfigMethod · 0.65

Calls

no outgoing calls

Tested by 3

propagateCancelFunction · 0.52
stringMethod · 0.52
setScreenFunction · 0.52