Foundation
Loading...
Searching...
No Matches
Macros | Functions | Variables
JobGraph.cpp File Reference
#include <Core/JobGraph.hpp>
#include <atomic>
#include <cstdio>
#include <thread>

Macros

#define EXPECT(cond, msg)
 

Functions

static size_t MakeTaskSize (size_t want)
 
static void TestEmptyAndBarrier (ThreadPool &pool)
 
static void TestParallelForSum (ThreadPool &pool)
 
static void TestChainOrdering (ThreadPool &pool)
 
static void TestDiamond (ThreadPool &pool)
 
static void TestSeqOnMain (ThreadPool &pool)
 
static void TestNoWorkers ()
 
static void TestStress (ThreadPool &pool)
 
int main ()
 

Variables

static int gFailures = 0
 

Macro Definition Documentation

◆ EXPECT

#define EXPECT (   cond,
  msg 
)
Value:
do \
{ \
if (!(cond)) \
{ \
std::printf("FAIL: %s\n", msg); \
++gFailures; \
} \
} while (0)
static int gFailures
Definition JobGraph.cpp:12

Function Documentation

◆ main()

int main ( )

◆ MakeTaskSize()

static size_t MakeTaskSize ( size_t  want)
static

◆ TestChainOrdering()

static void TestChainOrdering ( ThreadPool pool)
static

◆ TestDiamond()

static void TestDiamond ( ThreadPool pool)
static

◆ TestEmptyAndBarrier()

static void TestEmptyAndBarrier ( ThreadPool pool)
static

◆ TestNoWorkers()

static void TestNoWorkers ( )
static

◆ TestParallelForSum()

static void TestParallelForSum ( ThreadPool pool)
static

◆ TestSeqOnMain()

static void TestSeqOnMain ( ThreadPool pool)
static

◆ TestStress()

static void TestStress ( ThreadPool pool)
static

Variable Documentation

◆ gFailures

int gFailures = 0
static