__sync_fetch_and_add

来源:互联网 发布:linux停止tomcat服务 编辑:程序博客网 时间:2024/05/18 22:09

__sync_fetch_and_add

返回的是之前的值

一个作用是每次增1,用返回值做数组下标,因为数组下标是从0起的

0 0