Opened 14 years ago

Closed 14 years ago

#35 closed defect (fixed)

remove volatile, add barrier

Reported by: becoulet Owned by: becoulet
Priority: critical Milestone:
Component: hexo Keywords:
Cc:

Description

We should remove and discourage use of volatile attribute as it doesn't enforce compiler and cpu access ordering and is often misused. Something like #define volatile volatile attribute((deprecated)) could help.

We should add a hexo/ordering.h header file with compiler and processor/platform barrier primitives.

Change History (1)

comment:1 Changed 14 years ago by Nicolas Pouillon

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.