Midge
v3.9.2
Data Processing Framework
library
utility
instructable.cc
Go to the documentation of this file.
1
/*
2
* instructable.cc
3
*
4
* Created on: Feb 4, 2016
5
* Author: nsoblath
6
*/
7
8
#include "
instructable.hh
"
9
10
namespace
midge
11
{
12
13
instructable::instructable
() :
14
f_mutex(),
15
f_instruction(
instruction
::
none
),
16
f_have_instruction( false )
17
{
18
}
19
20
instructable::~instructable
()
21
{
22
}
23
24
instruction
instructable::use_instruction
()
25
{
26
std::unique_lock< std::mutex > t_lock(
f_mutex
);
27
instruction
t_temp =
f_instruction
;
28
f_instruction
=
instruction::carry_on
;
29
f_have_instruction
=
false
;
30
return
t_temp;
31
}
32
33
}
/* namespace midge */
midge::instruction
instruction
Definition:
instructable.hh:17
midge
Definition:
_buffer.hh:11
midge::instruction::carry_on
midge::instructable::f_mutex
std::mutex f_mutex
Definition:
instructable.hh:39
midge::instructable::instructable
instructable()
Definition:
instructable.cc:13
midge::instruction::none
midge::instructable::~instructable
virtual ~instructable()
Definition:
instructable.cc:20
instructable.hh
midge::instructable::f_instruction
instruction f_instruction
Definition:
instructable.hh:40
midge::instructable::f_have_instruction
bool f_have_instruction
Definition:
instructable.hh:41
midge::instructable::use_instruction
instruction use_instruction()
Definition:
instructable.cc:24
Generated by
1.8.13