1
1

opal_lifo: add missing memory barrier to 64/32-bit atomic lifo

implementation

Need to ensure the head write is complete before updating the item's
next pointer.

References #371
Этот коммит содержится в:
Nathan Hjelm 2015-02-17 12:23:13 -07:00
родитель 030e9bc714
Коммит 298f238096

Просмотреть файл

@ -208,6 +208,8 @@ static inline opal_list_item_t *opal_lifo_pop_atomic (opal_lifo_t* lifo)
return NULL;
}
opal_atomic_wmb ();
item->opal_list_next = NULL;
return item;
}