mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/thread: update comments
This commit is contained in:
parent
ece60af1b7
commit
089ba9ee20
@ -29,8 +29,6 @@ type OSThread struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// NewOSThread creates a new thread.
|
// NewOSThread creates a new thread.
|
||||||
//
|
|
||||||
// It is assumed that the OS thread is fixed by runtime.LockOSThread when NewOSThread is called.
|
|
||||||
func NewOSThread() *OSThread {
|
func NewOSThread() *OSThread {
|
||||||
return &OSThread{
|
return &OSThread{
|
||||||
funcs: make(chan func()),
|
funcs: make(chan func()),
|
||||||
@ -41,6 +39,8 @@ func NewOSThread() *OSThread {
|
|||||||
|
|
||||||
// Loop starts the thread loop until Stop is called.
|
// Loop starts the thread loop until Stop is called.
|
||||||
//
|
//
|
||||||
|
// It is assumed that an OS thread is fixed by runtime.LockOSThread when Loop is called.
|
||||||
|
//
|
||||||
// Loop must be called on the thread.
|
// Loop must be called on the thread.
|
||||||
func (t *OSThread) Loop() {
|
func (t *OSThread) Loop() {
|
||||||
for {
|
for {
|
||||||
|
Loading…
Reference in New Issue
Block a user