mirror of
https://github.com/golang/go.git
synced 2025-05-05 23:53:05 +00:00
Updated LockOSThread (markdown)
parent
52261eefd1
commit
bc43457cf0
@ -1,6 +1,6 @@
|
|||||||
# Introduction
|
# Introduction
|
||||||
|
|
||||||
Some libraries—especially graphical frameworks and libraries like Cocoa, OpenGL, and libSDL—use thread-local state and can require functions to be called only from a specific OS thread, typically the 'main' thread. Go's runtime package provides the `LockOSThread()` function for this, but it's notoriously difficult to use correctly.
|
Some libraries—especially graphical frameworks and libraries like Cocoa, OpenGL, and libSDL—use thread-local state and can require functions to be called only from a specific OS thread, typically the 'main' thread. Go provides the `runtime.LockOSThread` function for this, but it's notoriously difficult to use correctly.
|
||||||
|
|
||||||
# Solutions
|
# Solutions
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user