Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include "threads/Event.h"
#include "threads/IRunnable.h"
#include "threads/test/TestHelpers.h"
#include <memory>
#include <stdio.h>
Classes | |
class | waiter |
class | timed_waiter |
class | group_wait |
class | mass_waiter |
class | poll_mass_waiter |
Macros | |
#define | TESTNUM 100000l |
#define | NUMTHREADS 100l |
Functions | |
TEST (TestEvent, General) | |
TEST (TestEvent, TwoWaits) | |
TEST (TestEvent, TimedWaits) | |
TEST (TestEvent, TimedWaitsTimeout) | |
TEST (TestEvent, Group) | |
TEST (TestEvent, TwoGroups) | |
TEST (TestEvent, AutoResetBehavior) | |
TEST (TestEvent, ManualReset) | |
TEST (TestEvent, InitVal) | |
TEST (TestEvent, SimpleTimeout) | |
TEST (TestEvent, GroupChildSet) | |
TEST (TestEvent, GroupChildSet2) | |
TEST (TestEvent, GroupWaitResetsChild) | |
TEST (TestEvent, GroupTimedWait) | |
template<class W > | |
void | RunMassEventTest (std::vector< std::shared_ptr< W > > &m, bool canWaitOnEvent) |
TEST (TestMassEvent, General) | |
TEST (TestMassEvent, Polling) | |
Variables | |
CEvent * | g_event = NULL |
std::atomic< long > | g_mutex |
#define NUMTHREADS 100l |
#define TESTNUM 100000l |
void RunMassEventTest | ( | std::vector< std::shared_ptr< W > > & | m, |
bool | canWaitOnEvent ) |
TEST | ( | TestEvent | , |
AutoResetBehavior | ) |
TEST | ( | TestEvent | , |
General | ) |
TEST | ( | TestEvent | , |
Group | ) |
TEST | ( | TestEvent | , |
GroupChildSet | ) |
TEST | ( | TestEvent | , |
GroupChildSet2 | ) |
TEST | ( | TestEvent | , |
GroupTimedWait | ) |
TEST | ( | TestEvent | , |
GroupWaitResetsChild | ) |
TEST | ( | TestEvent | , |
InitVal | ) |
TEST | ( | TestEvent | , |
ManualReset | ) |
TEST | ( | TestEvent | , |
SimpleTimeout | ) |
TEST | ( | TestEvent | , |
TimedWaits | ) |
TEST | ( | TestEvent | , |
TimedWaitsTimeout | ) |
TEST | ( | TestEvent | , |
TwoGroups | ) |
TEST | ( | TestEvent | , |
TwoWaits | ) |
TEST | ( | TestMassEvent | , |
General | ) |
TEST | ( | TestMassEvent | , |
Polling | ) |
CEvent* g_event = NULL |
std::atomic<long> g_mutex |