Difference between pages "r7.1.1:Macro LFDS711 LIST ASU SET KEY IN ELEMENT" and "r7.1.1:Macro LFDS711 LIST ASU SET VALUE IN ELEMENT"
(Difference between pages)
Jump to navigation
Jump to search
m (1 revision imported) |
m (1 revision imported) |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:macro | {{DISPLAYTITLE:macro LFDS711_LIST_ASU_SET_VALUE_IN_ELEMENT}} | ||
==Source File== | ==Source File== | ||
└───liblfds711 | └───liblfds711 | ||
Line 10: | Line 10: | ||
==Macro== | ==Macro== | ||
#define | #define LFDS711_LIST_ASU_SET_VALUE_IN_ELEMENT( list_asu_element, new_value ) | ||
==Parameters== | ==Parameters== | ||
Line 16: | Line 16: | ||
: A ''struct lfds711_list_asu_element''. Not a pointer to it - the struct itself. | : A ''struct lfds711_list_asu_element''. Not a pointer to it - the struct itself. | ||
'' | ''new_value'' | ||
: A void pointer, which the | : A void pointer, which the value in ''list_asu_element'' is set to. | ||
==Return Value== | ==Return Value== | ||
Line 25: | Line 25: | ||
As with all ''liblfds'' macros, the macro operates on the structure itself, not a pointer to it. | As with all ''liblfds'' macros, the macro operates on the structure itself, not a pointer to it. | ||
The | The value is set atomically, and so can be used at any time, on an element in the list or before it enters the list, unlike setting a key, which can only be done before an element enters the list. | ||
==Example== | ==Example== |
Latest revision as of 18:12, 16 February 2017
Source File
└───liblfds711 └───inc └───liblfds711 lfds711_list_addonly_singlylinked_unordered.h
Opaque Structures
struct lfds711_list_asu_element;
Macro
#define LFDS711_LIST_ASU_SET_VALUE_IN_ELEMENT( list_asu_element, new_value )
Parameters
list_asu_element
- A struct lfds711_list_asu_element. Not a pointer to it - the struct itself.
new_value
- A void pointer, which the value in list_asu_element is set to.
Return Value
No return value.
Notes
As with all liblfds macros, the macro operates on the structure itself, not a pointer to it.
The value is set atomically, and so can be used at any time, on an element in the list or before it enters the list, unlike setting a key, which can only be done before an element enters the list.