Skip to content
  • 当前项目
    • 正在载入...
  • 登录

陈高翔 / DreamSleep-iOS

Unknown
转到一个项目
切换导航栏
切换导航栏固定状态
  • 项目
  • 群组
  • 代码片段
  • 帮助
  • 项目
  • 活动
  • 版本库
  • 流水线
  • 图表
  • 问题 0
  • 合并请求 0
  • 维基
  • 网络
  • 创建新的问题
  • 作业
  • 提交
  • 问题看板
  • 文件
  • 提交
  • 网络
  • 比较
  • 分支
  • 标签
切换分支/标签
  • DreamSleep-iOS
  • ..
  • Cpp
  • mpsc_node.h
  • cgx's avatar
    初步完成哄睡功能 · f329caab
    cgx 提交于 2022-05-16 22:31:52 +0800
    f329caab
mpsc_node.h 423 字节
原文件 审查 历史 永久链接
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#pragma once

#include "Atomic.h"

namespace baselib
{
    BASELIB_CPP_INTERFACE
    {
        // mpsc_node container node class. All nodes used by mpsc_node containers must derive from this class.
        // No initialization or other restrictions apply. Inherited class is not accessed by the mpsc_node containers.
        class mpsc_node
        {
        public:
            atomic<mpsc_node*> next;
        };
    }
}