Symbian platform (C++)
SDK native APIs, runtime and tooling
Loading...
Searching...
No Matches
select.h File Reference

Provides the Select and SelectUntil functions for selecting a fiber to proceed if one of several cases is ready. More...

#include <absl/log/check.h>
#include "thread/cases.h"

Go to the source code of this file.

Namespaces

namespace  thread
 

Functions

int thread::SelectUntil (absl::Time deadline, const CaseArray &cases)
 Returns the index of the first case that is ready, or -1 if the deadline has expired without any case becoming ready.
 
int thread::Select (const CaseArray &cases)
 Returns the index of the first case that is ready, blocking until one is.
 

Detailed Description

Provides the Select and SelectUntil functions for selecting a fiber to proceed if one of several cases is ready.

This file defines the thread::Select and thread::SelectUntil functions, which allow a fiber to wait for (block until) one of several cases happens to proceed, either until a specified deadline or indefinitely.