Midge  v3.9.2
Data Processing Framework
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 
14  f_mutex(),
15  f_instruction( instruction::none ),
16  f_have_instruction( false )
17  {
18  }
19 
21  {
22  }
23 
25  {
26  std::unique_lock< std::mutex > t_lock( f_mutex );
27  instruction t_temp = f_instruction;
29  f_have_instruction = false;
30  return t_temp;
31  }
32 
33 } /* namespace midge */
Definition: _buffer.hh:11
virtual ~instructable()
Definition: instructable.cc:20
instruction f_instruction
Definition: instructable.hh:40
instruction use_instruction()
Definition: instructable.cc:24