MADNESS  0.10.1
Classes | Macros | Functions | Variables
test_atomicint.cc File Reference
#include <madness/world/world.h>
#include <madness/world/thread.h>
#include <iostream>
#include <pthread.h>
#include <unistd.h>
#include <stdlib.h>
#include <madness/world/atomicint.h>
Include dependency graph for test_atomicint.cc:

Classes

class  Adder
 
class  Greet
 

Macros

#define MAX_NUM_THREADS   1000
 

Functions

void * doit (void *args)
 
int get_nthread ()
 
int main (int argc, char **argv)
 

Variables

const int NDO = 10000000
 
AtomicInt ndone
 
AtomicInt sum
 

Macro Definition Documentation

◆ MAX_NUM_THREADS

#define MAX_NUM_THREADS   1000

Function Documentation

◆ doit()

void* doit ( void *  args)

References ndone, and madness::sum().

Referenced by main().

◆ get_nthread()

int get_nthread ( )

References MADNESS_EXCEPTION.

Referenced by main().

◆ main()

int main ( int  argc,
char **  argv 
)

Variable Documentation

◆ NDO

const int NDO = 10000000

Referenced by main(), and Adder::run().

◆ ndone

AtomicInt ndone

◆ sum

AtomicInt sum