SST/macro
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
sstmac
software
libraries
unblock_event.h
Go to the documentation of this file.
1
#ifndef UNBLOCK_EVENT_H
2
#define UNBLOCK_EVENT_H
3
4
/*
5
* This file is part of SST/macroscale:
6
* The macroscale architecture simulator from the SST suite.
7
* Copyright (c) 2009 Sandia Corporation.
8
* This software is distributed under the BSD License.
9
* Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
10
* the U.S. Government retains certain rights in this software.
11
* For more information, see the LICENSE file in the top
12
* SST/macroscale directory.
13
*/
14
15
#include <
sstmac/common/sst_event.h
>
16
#include <
sstmac/common/messages/sst_message.h
>
17
#include <
sstmac/software/process/operating_system_fwd.h
>
18
#include <
sstmac/software/process/key.h
>
19
20
21
namespace
sstmac
{
22
namespace
sw {
23
24
class
unblock_event
:
public
event_queue_entry
25
{
26
27
public
:
28
unblock_event
(
operating_system
* os,
key
* k);
29
30
std::string
31
to_string
()
const
{
32
return
"unblock event"
;
33
}
34
35
virtual
void
execute
();
36
37
protected
:
38
operating_system
*
os_
;
39
key
*
key_
;
40
41
};
42
43
class
timeout_event
:
public
event_queue_entry
44
{
45
46
public
:
47
timeout_event
(
operating_system
* os,
key
* k);
48
49
std::string
50
to_string
()
const
{
51
return
"timeout event"
;
52
}
53
54
virtual
void
execute
();
55
56
protected
:
57
operating_system
*
os_
;
58
key
*
key_
;
59
60
};
61
62
}
63
}
//end of namespace sstmac
64
65
66
#endif // UNBLOCK_EVENT_H
sstmac::sw::timeout_event
Definition:
unblock_event.h:43
sstmac::sw::unblock_event::key_
key * key_
Definition:
unblock_event.h:39
sst_message.h
sstmac::sw::unblock_event::unblock_event
unblock_event(operating_system *os, key *k)
sstmac::sw::timeout_event::key_
key * key_
Definition:
unblock_event.h:58
sstmac::sw::timeout_event::to_string
std::string to_string() const
Definition:
unblock_event.h:50
sst_event.h
sstmac::sw::operating_system
Definition:
operating_system.h:48
sstmac::sw::unblock_event::os_
operating_system * os_
Definition:
unblock_event.h:38
sstmac::sw::unblock_event::execute
virtual void execute()
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::key
A base type and default (empty) implementation of a handle to block and unblock processes.
Definition:
key.h:30
sstmac::sw::unblock_event::to_string
std::string to_string() const
Definition:
unblock_event.h:31
sstmac::sw::timeout_event::os_
operating_system * os_
Definition:
unblock_event.h:57
operating_system_fwd.h
key.h
sstmac::sw::unblock_event
Definition:
unblock_event.h:24
sstmac::event_queue_entry
Definition:
sst_event.h:67
Generated by
1.8.11