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:28:49 +0000 (12:28 +0900)
commitc13cf0d69094bd586df16bb5cf1aa306f8923307
treeb7496f71e213ab1c91059fa0323fa9fb09b0450f
parent7e584a70c492698be18bf4d6372b50d1a1c38385
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