internal/thread: add comments

This commit is contained in:
Hajime Hoshi 2023-10-02 00:06:41 +09:00
parent 95b4eeafce
commit 50508e1a8d

View File

@ -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()