mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +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 returns ctx's error if exists.
|
||||
//
|
||||
// Loop must be called on the OS thread.
|
||||
func (t *OSThread) Loop(ctx context.Context) error {
|
||||
runtime.LockOSThread()
|
||||
|
Loading…
Reference in New Issue
Block a user