preCICE
v3.1.2
Loading...
Searching...
No Matches
src
com
SocketRequest.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
condition_variable
>
4
#include <
mutex
>
5
#include "
Request.hpp
"
6
7
namespace
precice::com
{
8
class
SocketRequest
:
public
Request
{
9
public
:
10
void
complete
();
11
12
bool
test
()
override
;
13
14
void
wait
()
override
;
15
16
private
:
17
bool
_complete
{
false
};
18
19
std::condition_variable
_completeCondition
;
20
std::mutex
_completeMutex
;
21
};
22
}
// namespace precice::com
Request.hpp
precice::com::Request
Definition
Request.hpp:8
precice::com::SocketRequest
Definition
SocketRequest.hpp:8
precice::com::SocketRequest::complete
void complete()
Definition
SocketRequest.cpp:5
precice::com::SocketRequest::_completeMutex
std::mutex _completeMutex
Definition
SocketRequest.hpp:20
precice::com::SocketRequest::wait
void wait() override
Definition
SocketRequest.cpp:23
precice::com::SocketRequest::_completeCondition
std::condition_variable _completeCondition
Definition
SocketRequest.hpp:19
precice::com::SocketRequest::_complete
bool _complete
Definition
SocketRequest.hpp:17
precice::com::SocketRequest::test
bool test() override
Definition
SocketRequest.cpp:16
condition_variable
mutex
precice::com
contains the data communication abstraction layer.
Definition
Communication.cpp:12