MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / setCurrentChannel

Method setCurrentChannel

Tactility/Source/app/chat/ChatState.cpp:23–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23void ChatState::setCurrentChannel(const std::string& channel) {
24 auto lock = mutex.asScopedLock();
25 lock.lock();
26 currentChannel = channel;
27}
28
29std::string ChatState::getCurrentChannel() const {
30 auto lock = mutex.asScopedLock();

Callers 2

onCreateMethod · 0.80
switchChannelMethod · 0.80

Calls 2

asScopedLockMethod · 0.80
lockMethod · 0.45

Tested by

no test coverage detected