Re: Make safe double remove?

2014-01-28 Thread Jonathan Howard
er, it's not a silver bullet. --Jason Ekstrand On Jan 28, 2014 11:22 AM, "Jonathan Howard" mailto:jonat...@unbiased.name>> wrote: Code is already using wl_list_init to have the construction of unlinked items in a stable state so that they can be destroyed with

Make safe double remove?

2014-01-28 Thread Jonathan Howard
Code is already using wl_list_init to have the construction of unlinked items in a stable state so that they can be destroyed with wl_list_remove. A problem is it is easy to write code that calls wl_list_remove during the structures life and miss that you need to reset with wl_list_init for wh