added moo_purgesemiosbyhandle()

This commit is contained in:
hyunghwan.chung
2018-02-03 07:16:29 +00:00
parent ea70db9633
commit eb35c3d865
4 changed files with 39 additions and 1 deletions

View File

@ -2152,6 +2152,15 @@ MOO_EXPORT const moo_ooch_t* moo_errnum_to_errstr (
moo_errnum_t errnum
);
/**
* The moo_purgesemiosbyhandle() function deletes IO semaphores associated
* with the given IO handle. It can be called usefaully when you close
* a IO handle with dangling semaphores associated.
*/
MOO_EXPORT void moo_purgesemiosbyhandle (
moo_t* moo,
moo_ooi_t io_handle
);
#if defined(MOO_INCLUDE_COMPILER)