xo-umbrella2/xo-websock/include/xo/websock/WsSafetyToken.hpp
Roland Conybeare dd1a6b1afc Add 'xo-websock/' from commit '57bf06a68f'
git-subtree-dir: xo-websock
git-subtree-mainline: 97eefaea22
git-subtree-split: 57bf06a68f
2025-05-11 15:08:51 -05:00

29 lines
657 B
C++

/* file WsSafetyToken.hpp
*
* author: Roland Conybeare, Sep 2022
*/
#pragma once
#include "SafetyToken.hpp"
#include <mutex>
namespace xo {
namespace web {
class WebserverImplWsThread;
class WebsocketSessionRecd;
/* only websocket thread can obtain this token */
class WsSafetyToken : public SafetyToken<class WsSafetyToken_tag> {
private:
friend class WebserverImplWsThread;
private:
/* only WebserverImpl should construct this */
WsSafetyToken() = default;
}; /*WsSafetyToken*/
} /*namespace web*/
} /*namespace xo*/
/* end WsSafetyToken.hpp */