summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d4267b0)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
#define CDS_WFS_ADAPT_ATTEMPTS 10 /* Retry if being set */
#define CDS_WFS_WAIT 10 /* Wait 10 ms if being set */
#define CDS_WFS_ADAPT_ATTEMPTS 10 /* Retry if being set */
#define CDS_WFS_WAIT 10 /* Wait 10 ms if being set */
void _cds_wfs_node_init(struct cds_wfs_node *node)
{
node->next = NULL;
}
void _cds_wfs_node_init(struct cds_wfs_node *node)
{
node->next = NULL;
}
void _cds_wfs_init(struct cds_wfs_stack *s)
{
int ret;
void _cds_wfs_init(struct cds_wfs_stack *s)
{
int ret;
void _cds_wfs_push(struct cds_wfs_stack *s, struct cds_wfs_node *node)
{
struct cds_wfs_node *old_head;
void _cds_wfs_push(struct cds_wfs_stack *s, struct cds_wfs_node *node)
{
struct cds_wfs_node *old_head;
/*
* Returns NULL if stack is empty.
*/
/*
* Returns NULL if stack is empty.
*/
struct cds_wfs_node *
___cds_wfs_pop_blocking(struct cds_wfs_stack *s)
{
struct cds_wfs_node *
___cds_wfs_pop_blocking(struct cds_wfs_stack *s)
{
goto retry; /* Concurrent modification. Retry. */
}
goto retry; /* Concurrent modification. Retry. */
}
struct cds_wfs_node *
_cds_wfs_pop_blocking(struct cds_wfs_stack *s)
{
struct cds_wfs_node *
_cds_wfs_pop_blocking(struct cds_wfs_stack *s)
{