Add 0 as valid g_obj_wait timeout instead of having it be equivalent to -1.

This commit is contained in:
Nexarian
2024-01-07 02:53:21 -05:00
committed by Christopher Pitstick
parent 63e963daf6
commit 584a894490
5 changed files with 10 additions and 9 deletions
+4 -1
View File
@@ -203,10 +203,13 @@ int g_delete_wait_obj(tintptr obj);
* @param rcount Number of elements in read_objs
* @param write_objs Array of write objects
* @param rcount Number of elements in write_objs
* @param mstimeout Timeout in milliseconds. <= 0 means an infinite timeout.
* @param mstimeout Timeout in milliseconds. < 0 means an infinite timeout.
*
* @return 0 for success. The objects will need to be polled to
* find out what is readable or writeable.
*
* An mstimeout of zero will return immediately, although
* error conditions may be checked for.
*/
int g_obj_wait(tintptr *read_objs, int rcount, tintptr *write_objs,
int wcount, int mstimeout);