Trying to catch an issue I think I saw in the debugger.
This commit is contained in:
parent
0090850e10
commit
df99b3aa90
@ -3760,7 +3760,12 @@ void tf_ssb_ref(tf_ssb_t* ssb)
|
|||||||
|
|
||||||
void tf_ssb_unref(tf_ssb_t* ssb)
|
void tf_ssb_unref(tf_ssb_t* ssb)
|
||||||
{
|
{
|
||||||
ssb->ref_count--;
|
int new_count = --ssb->ref_count;
|
||||||
|
if (new_count < 0)
|
||||||
|
{
|
||||||
|
tf_printf("tf_ssb_unref past 0: %d\n", new_count);
|
||||||
|
abort();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void tf_ssb_set_main_thread(tf_ssb_t* ssb, bool main_thread)
|
void tf_ssb_set_main_thread(tf_ssb_t* ssb, bool main_thread)
|
||||||
|
Loading…
Reference in New Issue
Block a user