YggdrasilWM
0.1.1
A tiny window manager coded in C++
|
#include <TSBarsData.hpp>
Public Member Functions | |
TSBarsData () | |
~TSBarsData () | |
void | addData (std::string key, std::string value) |
std::unordered_map< std::string, std::string > | getData () |
void | removeData (std::string key) |
void | modifyData (std::string key, std::string value) |
bool | wait () |
Public Attributes | |
bool | dataChanged = false |
Private Attributes | |
std::mutex | mutex |
std::condition_variable | cv |
std::unordered_map< std::string, std::string > | data |
std::set< std::string > | modifiedKeys |
Yb dP 8 w 8 Yb dP 8b d8 YbdP .d88 .d88 .d88 8d8b .d88 d88b w 8 Yb db dP 8YbmdP8 YP 8 8 8 8 8 8 8P 8 8 Yb. 8 8 YbdPYbdP 8 " 8 88
Y88 Y88
Y88 8 `Y88 Y88P 8 8 YP YP 8 8 wwdP wwdP Yggdrasil Window Manager https://github.com/corecaps/YggdrasilWM Copyright (C) 2024 jgarcia jgarc ia@s tuden t.42 .frcorec aps@ gmail .com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
TSBarsData::TSBarsData | ( | ) |
Yb dP 8 w 8 Yb dP 8b d8 YbdP .d88 .d88 .d88 8d8b .d88 d88b w 8 Yb db dP 8YbmdP8 YP 8 8 8 8 8 8 8P 8 8 Yb. 8 8 YbdPYbdP 8 " 8 88
Y88 Y88
Y88 8 `Y88 Y88P 8 8 YP YP 8 8 wwdP wwdP Yggdrasil Window Manager https://github.com/corecaps/YggdrasilWM Copyright (C) 2024 jgarcia jgarc ia@s tuden t.42 .frcorec aps@ gmail .com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
void TSBarsData::addData | ( | std::string | key, |
std::string | value | ||
) |
References cv, data, dataChanged, modifiedKeys, and mutex.
std::unordered_map< std::string, std::string > TSBarsData::getData | ( | ) |
References data, modifiedKeys, and mutex.
void TSBarsData::modifyData | ( | std::string | key, |
std::string | value | ||
) |
References cv, data, dataChanged, modifiedKeys, and mutex.
void TSBarsData::removeData | ( | std::string | key | ) |
References cv, data, dataChanged, modifiedKeys, and mutex.
bool TSBarsData::wait | ( | ) |
References cv, dataChanged, and mutex.
|
private |
Referenced by addData(), modifyData(), removeData(), and wait().
|
private |
Referenced by addData(), getData(), modifyData(), and removeData().
bool TSBarsData::dataChanged = false |
Referenced by addData(), modifyData(), removeData(), and wait().
|
private |
Referenced by addData(), getData(), modifyData(), and removeData().
|
private |
Referenced by addData(), getData(), modifyData(), removeData(), and wait().