xo-umbrella2/xo-websock/include/xo/websock/WsSafetyToken.hpp
Roland Conybeare 578c0ed658 git subrepo clone (merge) git@github.com:Rconybea/xo-websock.git xo-websock
subrepo:
  subdir:   "xo-websock"
  merged:   "c6eec3cd"
upstream:
  origin:   "git@github.com:Rconybea/xo-websock.git"
  branch:   "main"
  commit:   "c6eec3cd"
git-subrepo:
  version:  "0.4.9"
  origin:   "???"
  commit:   "???"
2026-06-06 22:37:35 -04: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 */