Fix race condition in gdd
This commit is contained in:
@@ -433,8 +433,10 @@ gddStatus gddApplicationTypeTable::freeDD(gdd* dd)
|
||||
}
|
||||
|
||||
// fprintf(stderr,"Adding DD to free_list %d\n",app);
|
||||
attr_table[group][app].sem.lock ();
|
||||
dd->setNext(attr_table[group][app].free_list);
|
||||
attr_table[group][app].free_list=dd;
|
||||
attr_table[group][app].sem.unlock ();
|
||||
}
|
||||
else if (attr_table[group][app].type==gddApplicationTypeNormal)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user