Skip to content

Commit e396b7c

Browse files
authored
Update semaphore.md
1 parent 7c8d771 commit e396b7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

semaphore.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ func semacquire1(addr *uint32, lifo bool, profile semaProfileFlags) {
236236

237237
// 高成本的情况:
238238
// 增加 waiter count 的值
239-
// 再尝试调用一次 cansemacquire,成本了就直接返回
239+
// 再尝试调用一次 cansemacquire,成功了就直接返回
240240
// 没成功就把自己作为一个 waiter 入队
241241
// sleep
242242
// (之后 waiter 的 descriptor 被 signaler 用 dequeue 踢出)

0 commit comments

Comments
 (0)