Fixed Coverity issues

This commit is contained in:
SChernykh
2022-11-03 19:24:15 +01:00
parent 0df11d24f5
commit 1f7c89a95c
4 changed files with 16 additions and 4 deletions
+9
View File
@@ -232,6 +232,15 @@ void uv_rwlock_init_checked(uv_rwlock_t* lock)
}
}
void uv_async_init_checked(uv_loop_t* loop, uv_async_t* async, uv_async_cb async_cb)
{
const int err = uv_async_init(loop, async, async_cb);
if (err) {
LOGERR(1, "uv_async_init failed, error " << uv_err_name(err));
panic();
}
}
uv_loop_t* uv_default_loop_checked()
{
if (!is_main_thread()) {