IntrOS
Loading...
Searching...
No Matches
intros::Flag Struct Reference

create and initialize a flag object More...

#include <osflag.h>

Inheritance diagram for intros::Flag:

Public Member Functions

constexpr Flag (const unsigned _init=0)
 constructor, see the constructor parameters of the class
 Flag (Flag &&_src)
 move constructor
 Flag (const Flag &)=delete
Flag & operator= (Flag &&)=delete
Flag & operator= (const Flag &)=delete
void reset ()
 flg_reset()
void kill ()
 flg_kill()
unsigned take (unsigned _flags, unsigned _mode=flgAll)
 flg_take()
unsigned tryWait (unsigned _flags, unsigned _mode=flgAll)
 flg_tryWait()
template<typename T>
int waitFor (unsigned _flags, unsigned _mode, const T &_delay)
 flg_waitFor()
template<typename T>
int waitUntil (unsigned _flags, unsigned _mode, const T &_time)
 flg_waitUntil()
int wait (unsigned _flags, unsigned _mode=flgAll)
 flg_wait()
unsigned give (unsigned _flags)
 flg_give()
unsigned set (unsigned _flags)
 flg_set()
unsigned clear (unsigned _flags)
 flg_clear()
unsigned get ()
 flg_get()

Detailed Description

create and initialize a flag object

Constructor parameters
  • init: initial value of flag

The documentation for this struct was generated from the following file: