mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
internal/thread: add comments
This commit is contained in:
parent
95b4eeafce
commit
50508e1a8d
@ -50,6 +50,8 @@ func NewOSThread() *OSThread {
|
|||||||
|
|
||||||
// Loop starts the thread loop until Stop is called on the current OS thread.
|
// Loop starts the thread loop until Stop is called on the current OS thread.
|
||||||
//
|
//
|
||||||
|
// Loop returns ctx's error if exists.
|
||||||
|
//
|
||||||
// Loop must be called on the OS thread.
|
// Loop must be called on the OS thread.
|
||||||
func (t *OSThread) Loop(ctx context.Context) error {
|
func (t *OSThread) Loop(ctx context.Context) error {
|
||||||
runtime.LockOSThread()
|
runtime.LockOSThread()
|
||||||
|
Loading…
Reference in New Issue
Block a user