SST/macro
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
sstmac
software
process
simple_compute_scheduler.h
Go to the documentation of this file.
1
#ifndef sstmac_software_process_simple_COMPUTE_scheduleR_H
2
#define sstmac_software_process_simple_COMPUTE_scheduleR_H
3
4
#include <
sstmac/software/process/compute_scheduler.h
>
5
6
namespace
sstmac
{
7
namespace
sw {
8
9
class
simple_compute_scheduler
:
public
compute_scheduler
10
{
11
public
:
12
simple_compute_scheduler
(
operating_system
* os)
13
:
ncore_active_
(0),
compute_scheduler
(os)
14
{}
15
16
void
reserve_core
(
thread
* thr);
17
18
void
release_core
(
thread
* thr);
19
20
private
:
21
std::list<thread*>
pending_threads_
;
22
int
ncore_active_
;
23
};
24
25
}
26
}
27
28
#endif // BASIC_COMPUTE_scheduleR_H
sstmac::sw::simple_compute_scheduler::pending_threads_
std::list< thread * > pending_threads_
Definition:
simple_compute_scheduler.h:21
sstmac::sw::simple_compute_scheduler
Definition:
simple_compute_scheduler.h:9
compute_scheduler
sstmac::sw::simple_compute_scheduler::reserve_core
void reserve_core(thread *thr)
sstmac::sw::thread
Definition:
thread.h:42
compute_scheduler.h
sstmac::sw::simple_compute_scheduler::simple_compute_scheduler
simple_compute_scheduler(operating_system *os)
Definition:
simple_compute_scheduler.h:12
sstmac::sw::simple_compute_scheduler::ncore_active_
int ncore_active_
Definition:
simple_compute_scheduler.h:22
sstmac::sw::operating_system
Definition:
operating_system.h:48
sstmac
SUMI = Simulator unified messagine interface It is also the name for a solid ink in Japanese - i...
Definition:
parallel_runtime.h:18
sstmac::sw::simple_compute_scheduler::release_core
void release_core(thread *thr)
Generated by
1.8.11