gallium: Make handle_table reentrant.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Tue, 11 Nov 2008 14:27:27 +0000 (23:27 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Mon, 17 Nov 2008 03:36:02 +0000 (12:36 +0900)
commitee172bf067d9a66faa9d57980970326b680df839
tree2cbaa3adfc0216f09737bb5c73091a3becbe7a16
parent40b3bb0407b6833a06e0a3a2e859cfac75b9100b
gallium: Make handle_table reentrant.

Ensure that the object has consistent state also when calling the destroy
callback. Namely, ensure the object passed to the callback is removed from
the table prior to calling the destroy callback to avoid a infinite loop or
double free.
src/gallium/auxiliary/util/u_handle_table.c