HPCToolkit
lush-pthread.c File Reference
#include <stdlib.h>
#include <stdbool.h>
#include <unistd.h>
#include <include/gcc-attr.h>
#include "lush-pthread.h"
#include <messages/messages.h>
Include dependency graph for lush-pthread.c:

Go to the source code of this file.

Classes

struct  lushPthr_globals_t
 

Macros

#define lushPthr_memSizeElem   (0)
 
#define lushPthr_memSize   (sizeof(lushPthr_mem))
 
#define lushPthr_memSizeMax   (0x3fffffff) /* lower 30 bits */
 

Functions

void lushPthr_processInit ()
 
void lushPthr_init (lushPthr_t *x)
 
void lushPthr_dump (lushPthr_t *x, const char *nm, void *lock)
 

Variables

lushPtr_SyncObjData_t lushPthr_mem [lushPthr_memSizeElemGCC_ATTR_VAR_CACHE_ALIGN
 
void * lushPthr_mem_beg
 
void * lushPthr_mem_end
 
lushPthr_mem_ptr_t lushPthr_mem_ptr
 
lushPthr_globals_t globals
 

Macro Definition Documentation

◆ lushPthr_memSize

#define lushPthr_memSize   (sizeof(lushPthr_mem))

Definition at line 91 of file lush-pthread.c.

◆ lushPthr_memSizeElem

#define lushPthr_memSizeElem   (0)

Definition at line 85 of file lush-pthread.c.

◆ lushPthr_memSizeMax

#define lushPthr_memSizeMax   (0x3fffffff) /* lower 30 bits */

Definition at line 92 of file lush-pthread.c.

Function Documentation

◆ lushPthr_dump()

void lushPthr_dump ( lushPthr_t *  x,
const char *  nm,
void *  lock 
)

Definition at line 225 of file lush-pthread.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ lushPthr_init()

void lushPthr_init ( lushPthr_t *  x)

Definition at line 190 of file lush-pthread.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ lushPthr_processInit()

void lushPthr_processInit ( )

Definition at line 147 of file lush-pthread.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ GCC_ATTR_VAR_CACHE_ALIGN

lushPtr_SyncObjData_t lushPthr_mem [lushPthr_memSizeElem] GCC_ATTR_VAR_CACHE_ALIGN

Definition at line 89 of file lush-pthread.c.

◆ globals

Initial value:
= {
.ps_num_procs = ATOMIC_VAR_INIT(0),
.ps_num_threads = ATOMIC_VAR_INIT(0),
.ps_num_working = ATOMIC_VAR_INIT(0),
.ps_num_working_lock = ATOMIC_VAR_INIT(0),
.ps_num_idle_cond = ATOMIC_VAR_INIT(0)
}
#define ATOMIC_VAR_INIT(value)
Definition: stdatomic.h:132

Definition at line 132 of file lush-pthread.c.

◆ lushPthr_mem_beg

void* lushPthr_mem_beg

Definition at line 94 of file lush-pthread.c.

◆ lushPthr_mem_end

void* lushPthr_mem_end

Definition at line 95 of file lush-pthread.c.

◆ lushPthr_mem_ptr

lushPthr_mem_ptr_t lushPthr_mem_ptr

Definition at line 97 of file lush-pthread.c.