mirror of
git://github.com/lxc/lxc
synced 2025-09-03 17:29:34 +00:00
mainloop: add comments about multishot and oneshot cleanup
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
@@ -292,7 +292,17 @@ static int __lxc_mainloop_io_uring(struct lxc_async_descr *descr, int timeout_ms
|
|||||||
return -1;
|
return -1;
|
||||||
break;
|
break;
|
||||||
case LXC_MAINLOOP_DISARM:
|
case LXC_MAINLOOP_DISARM:
|
||||||
|
/*
|
||||||
|
* If this is a multhishot handler we need to
|
||||||
|
* disarm it here. Actual cleanup happens
|
||||||
|
* later.
|
||||||
|
*/
|
||||||
disarm_handler(descr, handler, oneshot);
|
disarm_handler(descr, handler, oneshot);
|
||||||
|
/*
|
||||||
|
* If this is a oneshot handler we know it has
|
||||||
|
* just run and we also know the above call was
|
||||||
|
* a nop. So clean it up directly.
|
||||||
|
*/
|
||||||
if (oneshot)
|
if (oneshot)
|
||||||
delete_handler(handler);
|
delete_handler(handler);
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user