ec_double_list_init

March 26, 2020 Contributors

Name

ec_double_list_init — Initialize a new list

Synopsis

#include "misc/ec_double_list.h"

| int **ec_double_list_init** ( | list, |   |
|   | ts); |   |

ec_double_list * <var class="pdparam">list</var>;
int <var class="pdparam">ts</var>;

Description

Initialize a new double linked list.

Parameters

list

The list to be initialized.

ts

If non-zero, enables the internal mutex lock.

Return Value

On success, this function returns 0; on failure -1 is returned.

Threading

It is legal to call this function in any thread.

See Also

“ec_double_list” and ec_double_list_destroy