Volatile Struct Semantics

后端 未结 2 1048
说谎
说谎 2020-12-12 19:52

Is it sufficient to declare an instance of a structure-typed variable as volatile (if its fields are accessed in re-entrant code), or must one declare specific fields of the

2条回答
  •  甜味超标
    2020-12-12 20:20

    if you declare a structure with volatile then all its members will also be volatile

提交回复
热议问题