Skip to content

Commit

Permalink
Avoid assigning bindings that are still in-use
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Jul 14, 2009
1 parent 9d9d5e9 commit a9077a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ext/binder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ unsigned long Bindable_t::CreateBinding()
{
// XXX use atomic_t to prevent thread-safety issues
static unsigned long num = 0;
return ++num;
while(BindingBag[++num]);
return num;
}

#if 0
Expand Down

0 comments on commit a9077a0

Please sign in to comment.