GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
GpgFrontend::GFDataExchanger Class Reference
Collaboration diagram for GpgFrontend::GFDataExchanger:
Collaboration graph

Public Member Functions

 GFDataExchanger (ssize_t size)
auto Write (const std::byte *buffer, size_t size) -> ssize_t
auto Read (std::byte *buffer, size_t size) -> ssize_t
void CloseWrite ()

Private Attributes

std::condition_variable not_full_
std::condition_variable not_empty_
std::queue< std::byte > queue_
std::mutex mutex_
const ssize_t queue_max_size_
std::atomic_bool close_ = false

The documentation for this class was generated from the following files: