#include "ofc/core.h"
#include "ofc/types.h"
#include "ofc/handle.h"
Go to the source code of this file.
◆ ofc_waitset_add()
Add an event to the wait set
- Parameters
-
| hSet | Handle to the wait set to add the event to |
| hApp | Handle to the app that owns the event |
| hEvent | Handle to the event to add |
- Examples
- smbcp.c, and test_file.c.
◆ ofc_waitset_clear()
Remove all events from a wait set
- Parameters
-
◆ ofc_waitset_clear_app()
Disassociate an app from all events in waitset
- Parameters
-
| handle | Handle to the waitset |
| hApp | App to disassociate |
◆ ofc_waitset_create()
Create a wait set
A Wait Set is just a container that events are added to. Events are specified as handles. Multiple events can be added and a subsequent wait will wait for any one of the events to be triggered.
- Returns
- A handle to the wait set
- Examples
- smbcp.c, and test_file.c.
◆ ofc_waitset_destroy()
Destroy a wait set
- Parameters
-
| handle | Handle of the wait set to destroy |
- Examples
- smbcp.c, and test_file.c.
◆ ofc_waitset_remove()
Remove an event from a wait set
- Parameters
-
| hSet | Handle to wait set |
| hEvent | Handle to event to remove |
- Examples
- smbcp.c, and test_file.c.
◆ ofc_waitset_wait()
Wait for an event in a wait set to be ready
- Parameters
-
| handle | Handle of the wait set to wait on |
- Returns
- Handle to the app with the event that is ready. OFC_HANDLE_NULL if woken by a wake call.
- Examples
- smbcp.c, and test_file.c.
◆ ofc_waitset_wake()
Wake up a wait set that is currently waiting.
- Parameters
-
| handle | Handle of the wait set to wake up. |