SST/macro
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
sstmac::sw::cpuset_compute_scheduler Class Reference

#include <cpuset_compute_scheduler.h>

Inheritance diagram for sstmac::sw::cpuset_compute_scheduler:
Inheritance graph
Collaboration diagram for sstmac::sw::cpuset_compute_scheduler:
Collaboration graph

Public Member Functions

 cpuset_compute_scheduler (sw::operating_system *os)
 
void configure (int ncore, int nsocket)
 
void reserve_core (thread *thr)
 
void release_core (thread *thr)
 

Private Member Functions

void allocate_core (int core)
 
void deallocate_core (int core)
 

Static Private Member Functions

static int available_core (int ncore, uint64_t cpumask)
 

Private Attributes

uint64_t available_cores_
 
std::list< thread * > pending_threads_
 

Detailed Description

Definition at line 9 of file cpuset_compute_scheduler.h.

Constructor & Destructor Documentation

sstmac::sw::cpuset_compute_scheduler::cpuset_compute_scheduler ( sw::operating_system os)
inline

Definition at line 12 of file cpuset_compute_scheduler.h.

References available_core(), configure(), release_core(), and reserve_core().

Here is the call graph for this function:

Member Function Documentation

void sstmac::sw::cpuset_compute_scheduler::allocate_core ( int  core)
inlineprivate

Definition at line 27 of file cpuset_compute_scheduler.h.

References available_cores_.

static int sstmac::sw::cpuset_compute_scheduler::available_core ( int  ncore,
uint64_t  cpumask 
)
staticprivate
void sstmac::sw::cpuset_compute_scheduler::configure ( int  ncore,
int  nsocket 
)
void sstmac::sw::cpuset_compute_scheduler::deallocate_core ( int  core)
inlineprivate

Definition at line 31 of file cpuset_compute_scheduler.h.

References available_cores_.

void sstmac::sw::cpuset_compute_scheduler::release_core ( thread thr)
void sstmac::sw::cpuset_compute_scheduler::reserve_core ( thread thr)

Member Data Documentation

uint64_t sstmac::sw::cpuset_compute_scheduler::available_cores_
private

Definition at line 36 of file cpuset_compute_scheduler.h.

Referenced by allocate_core(), and deallocate_core().

std::list<thread*> sstmac::sw::cpuset_compute_scheduler::pending_threads_
private

Definition at line 37 of file cpuset_compute_scheduler.h.


The documentation for this class was generated from the following file: