mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-13 22:47:26 +01:00
thread: Add comments
This commit is contained in:
parent
00e78c1eae
commit
5040b3bcfc
@ -57,6 +57,8 @@ loop:
|
|||||||
// Call calls f on the thread.
|
// Call calls f on the thread.
|
||||||
//
|
//
|
||||||
// Do not call this from the same thread. This would block forever.
|
// Do not call this from the same thread. This would block forever.
|
||||||
|
//
|
||||||
|
// Call panics when Loop already ends.
|
||||||
func (t *Thread) Call(f func() error) error {
|
func (t *Thread) Call(f func() error) error {
|
||||||
select {
|
select {
|
||||||
case t.funcs <- f:
|
case t.funcs <- f:
|
||||||
|
Loading…
Reference in New Issue
Block a user