瀏覽代碼

added note about pthread_yield

KTRosenberg 5 年之前
父節點
當前提交
673879d1d2
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      core/sys/unix/pthread_linux.odin

+ 2 - 0
core/sys/unix/pthread_linux.odin

@@ -104,5 +104,7 @@ foreign pthread {
 	sem_trywait :: proc(sem: ^sem_t) -> c.int ---;
 	// sem_timedwait :: proc(sem: ^sem_t, timeout: time.TimeSpec) -> c.int ---;
 
+	// NOTE: unclear whether pthread_yield is well-supported on Linux systems,
+	// see https://linux.die.net/man/3/pthread_yield
 	pthread_yield :: proc() -> c.int ---;
 }