/home/runner/work/HiCR/HiCR/include/hicr/backends/pthreads/processingUnit.hpp File Reference

HiCR: /home/runner/work/HiCR/HiCR/include/hicr/backends/pthreads/processingUnit.hpp File Reference
HiCR
processingUnit.hpp File Reference

Implements the processing unit class for the Pthreads backend. More...

#include <csignal>
#include <set>
#include <sched.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <pthread.h>
#include <hicr/core/definitions.hpp>
#include <hicr/core/exceptions.hpp>
#include <hicr/core/processingUnit.hpp>
#include <hicr/backends/boost/executionState.hpp>
#include <hicr/backends/boost/executionUnit.hpp>
#include <hicr/backends/hwloc/computeResource.hpp>

Go to the source code of this file.

Classes

class  HiCR::backend::pthreads::ProcessingUnit
 

Macros

#define _GNU_SOURCE
 Required by sched_getaffinity.
 
#define HICR_SUSPEND_SIGNAL   SIGUSR1
 
#define HICR_RESUME_SIGNAL   SIGUSR2
 

Detailed Description

Implements the processing unit class for the Pthreads backend.

Author
S. M. Martin
Date
14/8/2023

Macro Definition Documentation

◆ HICR_RESUME_SIGNAL

#define HICR_RESUME_SIGNAL   SIGUSR2

Signal to use to resume thread (might need to be adapted to each system)

◆ HICR_SUSPEND_SIGNAL

#define HICR_SUSPEND_SIGNAL   SIGUSR1

Signal to use to suspend thread (might need to be adapted to each system)