mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
Work around compiler optimisation bug on FreeBSD by swapping two lines of code :-/
This commit is contained in:
parent
8582089aeb
commit
0e54f8b85b
@ -54,8 +54,8 @@ record_task(Thread *current_thread) {
|
|||||||
// If the return value is other than NULL, someone else must have
|
// If the return value is other than NULL, someone else must have
|
||||||
// assigned the task first, in another thread. That shouldn't be
|
// assigned the task first, in another thread. That shouldn't be
|
||||||
// possible.
|
// possible.
|
||||||
nassertv(result == NULL);
|
|
||||||
nassertv(current_thread->_current_task == this);
|
nassertv(current_thread->_current_task == this);
|
||||||
|
nassertv(result == NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
@ -75,6 +75,6 @@ clear_task(Thread *current_thread) {
|
|||||||
// If the return value is other than this, someone else must have
|
// If the return value is other than this, someone else must have
|
||||||
// assigned the task first, in another thread. That shouldn't be
|
// assigned the task first, in another thread. That shouldn't be
|
||||||
// possible.
|
// possible.
|
||||||
nassertv(result == this);
|
|
||||||
nassertv(current_thread->_current_task == NULL);
|
nassertv(current_thread->_current_task == NULL);
|
||||||
|
nassertv(result == this);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user