opal/class/opal_lifo: rename a local variable initially called new
this file is now indirectly included from C++, and new is a reserved C++ keyword
Этот коммит содержится в:
родитель
c749d7d977
Коммит
013aec894b
@ -14,6 +14,8 @@
|
||||
* Copyright (c) 2010 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2014-2015 Los Alamos National Security, LLC. All rights
|
||||
* reseved.
|
||||
* Copyright (c) 2016 Research Organization for Information Science
|
||||
* and Technology (RIST). All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
* Additional copyrights may follow
|
||||
@ -66,8 +68,8 @@ typedef union opal_counted_pointer_t opal_counted_pointer_t;
|
||||
static inline bool opal_update_counted_pointer (volatile opal_counted_pointer_t *addr, opal_counted_pointer_t old,
|
||||
opal_list_item_t *item)
|
||||
{
|
||||
opal_counted_pointer_t new = {.data = {.item = item, .counter = old.data.counter + 1}};
|
||||
return opal_atomic_cmpset_128 (&addr->value, old.value, new.value);
|
||||
opal_counted_pointer_t new_p = {.data = {.item = item, .counter = old.data.counter + 1}};
|
||||
return opal_atomic_cmpset_128 (&addr->value, old.value, new_p.value);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user