mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-18 12:43:44 -04:00
no yielding within OS-level thread
This commit is contained in:
parent
fe97acf7cb
commit
94b0f6ee45
@ -756,7 +756,11 @@ read_callback(void *handle, void *buffer, unsigned int size_bytes,
|
|||||||
istream *str = (istream *)handle;
|
istream *str = (istream *)handle;
|
||||||
str->read((char *)buffer, size_bytes);
|
str->read((char *)buffer, size_bytes);
|
||||||
(*bytes_read) = str->gcount();
|
(*bytes_read) = str->gcount();
|
||||||
thread_consider_yield();
|
|
||||||
|
// We can't yield here, since this callback is made within a
|
||||||
|
// sub-thread--an OS-level sub-thread spawned by FMod, not a Panda
|
||||||
|
// thread.
|
||||||
|
//thread_consider_yield();
|
||||||
|
|
||||||
if (str->eof()) {
|
if (str->eof()) {
|
||||||
if ((*bytes_read) == 0) {
|
if ((*bytes_read) == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user