Skip to content

Commit fdbfdae

Browse files
spacewanderagentzh
authored andcommitted
semaphore: fixed a typo in a code comment.
Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
1 parent e86dd96 commit fdbfdae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ngx_http_lua_semaphore.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,8 +387,8 @@ ngx_http_lua_ffi_sema_wait(ngx_http_request_t *r,
387387
return NGX_ERROR;
388388
}
389389

390-
/* we keep the order, will resume the older waited firtly
391-
* in ngx_http_lua_sema_handler
390+
/* we keep the order, will first resume the thread waiting for the
391+
* longest time in ngx_http_lua_sema_handler
392392
*/
393393

394394
if (ngx_queue_empty(&sem->wait_queue) && sem->resource_count > 0) {

0 commit comments

Comments
 (0)