首页 > 其他分享 >并发支持库:原子操作类型

并发支持库:原子操作类型

时间:2024-03-14 15:47:10浏览次数:30  
标签:std 11 typedef C++ 原子 并发 atomicstd atomic 类型

原子操作

这些组件为细粒度的原子操作提供,允许无锁并发编程。

类型别名

atomic_bool(C++11) std::atomic (typedef)
atomic_char(C++11) std::atomic (typedef)
atomic_schar(C++11) std::atomic (typedef)
atomic_uchar(C++11) std::atomic (typedef)
atomic_short(C++11) std::atomic (typedef)
atomic_ushort(C++11) std::atomic (typedef)
atomic_int(C++11) std::atomic (typedef)
atomic_uint(C++11) std::atomic (typedef)
atomic_long(C++11) std::atomic (typedef)
atomic_ulong(C++11) std::atomic (typedef)
atomic_llong(C++11) std::atomic (typedef)
atomic_ullong(C++11) std::atomic (typedef)
atomic_char8_t(C++20) std::atomic<char8_t> (typedef)
atomic_char16_t(C++11) std::atomic<char16_t> (typedef)
atomic_char32_t(C++11) std::atomic<char32_t> (typedef)
atomic_wchar_t(C++11) std::atomic<wchar_t> (typedef)
atomic_int8_t(C++11)(可选) std::atomic < std::int8_t>(typedef)
atomic_uint8_t(C++11)(可选) std::atomic<std::uint8_t> (typedef)
atomic_int16_t(C++11)(可选) std::atomic<std::int16_t> (typedef)
atomic_uint16_t(C++11)(可选) std::atomic<std::uint16_t> (typedef)
atomic_int32_t(C++11)(可选) std::atomic<std::int32_t> (typedef)
atomic_uint32_t(C++11)(可选) std::atomic<std::uint32_t> (typedef)
atomic_int64_t(C++11)(可选) std::atomic<std::int64_t> (typedef)
atomic_uint64_t(C++11)(可选) std::atomic<std::uint64_t> (typedef)
atomic_int_least8_t(C++11) std::atomic<std::int_least8_t> (typedef)
atomic_uint_least8_t(C++11) std::atomic<std::uint_least8_t> (typedef)
atomic_int_least16_t(C++11) std::atomic<std::int_least16_t> (typedef)
atomic_uint_least16_t(C++11) std::atomic<std::uint_least16_t> (typedef)
atomic_int_least32_t(C++11) std::atomic<std::int_least32_t> (typedef)
atomic_uint_least32_t(C++11) std::atomic<std::uint_least32_t> (typedef)
atomic_int_least64_t(C++11) std::atomic<std::int_least64_t> (typedef)
atomic_uint_least64_t(C++11) std::atomic<std::uint_least64_t> (typedef)
atomic_int_fast8_t(C++11) std::atomic<std::int_fast8_t> (typedef)
atomic_uint_fast8_t(C++11) std::atomic<std::uint_fast8_t> (typedef)
atomic_int_fast16_t(C++11) std::atomic<std::int_fast16_t> (typedef)
atomic_uint_fast16_t(C++11) std::atomic<std::uint_fast16_t> (typedef)
atomic_int_fast32_t(C++11) std::atomic<std::int_fast32_t> (typedef)
atomic_uint_fast32_t(C++11) std::atomic<std::uint_fast32_t> (typedef)
atomic_int_fast64_t(C++11) std::atomic<std::int_fast64_t> (typedef)
atomic_uint_fast64_t(C++11) std::atomic<std::uint_fast64_t> (typedef)
atomic_intptr_t(C++11)(可选) std::atomic<std::intptr_t> (typedef)
atomic_uintptr_t(C++11)(可选) std::atomic<std::uintptr_t> (typedef)
atomic_size_t(C++11) std::atomic<std::size_t> (typedef)
atomic_ptrdiff_t(C++11) std::atomic<std::ptrdiff_t> (typedef)
atomic_intmax_t(C++11) std::atomic<std::intmax_t> (typedef)
atomic_uintmax_t(C++11) std::atomic<std::uintmax_t> (typedef)

标签:std,11,typedef,C++,原子,并发,atomicstd,atomic,类型
From: https://www.cnblogs.com/getonechao/p/18073008

相关文章

  • 把string转化为int类型,不成功则返回0
    ///<summary>///将字符串数据转换为int数据,如果格式不对则返回0///</summary>///<paramname="str">需要转换的字符串</param>///<returns></returns>publicstaticintString2Int(stringstr......
  • 滴水逆向笔记系列-7.堆栈图-8.c语言反汇编-9.数据类型
    第七课堆栈图1.函数函数的入口汇编中的函数函数有入口出口,但不一定有返回值和参数2、堆栈windows堆栈:什么是堆栈平衡:第八课c语言分析这段代码的反编译有时候跟反汇编不一定要进函数看,有时候从上下文就能大概猜出函数的作用第九课c语言21、什么是裸函数可以看到......
  • 公钥密码学算法类型综述
    作者:网安新生研讨课第一小组采用协议CCBY-NC,原文链接:https://www.cnblogs.com/Multya/p/18072514概念公开密钥密码学(英语:Public-keycryptography)也称非对称式密码学(英语:Asymmetriccryptography)是密码学的一种算法,它需要两个密钥,一个是公开密钥,另一个是私有密钥;公钥用作......
  • Sqlserver中所有约束的类型,创建、修改与删除
       1、https://blog.51cto.com/u_15738244/5535432    2、https://blog.csdn.net/realoser/article/details/121496126数据库所有的约束:​ ​一、主键约束(primarykey)​​​ ​二、外键约束(foreignkey)​​​ ​三、检查约束(check)​​​ ​四、非空约束(notn......
  • 单据类型参数设置增加自定义参数并通过BOS标准函数调用
     1、BOS函数说明2、创建对应单据的【单据类型参数】,继承自【单据类型参数模版】。 3、在单据参数中绑定【单据类型参数对象】 4、参数设置设置对应参数 5、在BOS中调用标准函数进行使用。 ......
  • 图解Java并发编程第一章总结【精炼版】
    【第一章】图解Java并发编程Java线程的基本操作yield操作:yield操作,在基于时间片轮转的cpu调度算法中,用来放弃当前时间片sleep操作:sleep操作分为三种情况普通sleep:在指定时间内放弃cpu使用权,不释放同步锁sleep(0):作用与yield相同sleep被中断:抛出中断异常......
  • 【Java面试题-基础知识01】Java数据类型四连问?
    一、Java中的基础数据类型有哪些?Java中的基本数据类型包括:1.byte:8位有符号整数,范围为-128到127。2.short:16位有符号整数,范围为-32768到32767。3.int:32位有符号整数,范围为-2147483648到2147483647。4.long:64位有符号整数,范围为-9223372036854775808到9223372036854775807。5.......
  • Redis 八种常用数据类型详解
    夯实基础,这篇文章带着大家回顾一下Redis中的8种常用数据类型:5种基础数据类型:String(字符串)、List(列表)、Set(集合)、Hash(散列)、Zset(有序集合)。3种特殊数据类型:HyperLogLog(基数统计)、Bitmap(位图)、Geospatial(地理位置)。Redis5种基本数据类型Redis共有5种基本数据类......
  • [20240312]sqlplus define数据类型问题.txt
    [20240312]sqlplusdefine数据类型问题.txt--//编写sql脚本遇到的问题,通过例子说明。1.环境:SCOTT@book>@ver1111PORT_STRING                   VERSION       BANNER------------------------------------------------------------------------......
  • Java多线程&并发篇2024
    目录Java全技术栈面试题合集地址Java多线程&并发篇1.volatile能使得一个非原子操作变成原子操作吗?2.volatile修饰符的有过什么实践?3.volatile类型变量提供什么保证?4.Java中怎么获取一份线程dump文件?5.什么是线程局部变量?6.Java中sleep方法和wait方法的区别?7.......