more multi-thread fixes
don't use static on acquire() don't yield at all run fillBuf() on thread fix option tooltip as it introduces some overhead
This commit is contained in:
parent
64669e4d9b
commit
1a520dbf3e
14 changed files with 33 additions and 29 deletions
|
|
@ -241,8 +241,8 @@ void DivPlatformYM2610::acquire(short** buf, size_t len) {
|
|||
}
|
||||
|
||||
void DivPlatformYM2610::acquire_combo(short** buf, size_t len) {
|
||||
static int os[2];
|
||||
static short ignored[2];
|
||||
thread_local int os[2];
|
||||
thread_local short ignored[2];
|
||||
|
||||
ymfm::ssg_engine* ssge=fm->debug_ssg_engine();
|
||||
ymfm::adpcm_a_engine* aae=fm->debug_adpcm_a_engine();
|
||||
|
|
@ -350,7 +350,7 @@ void DivPlatformYM2610::acquire_combo(short** buf, size_t len) {
|
|||
}
|
||||
|
||||
void DivPlatformYM2610::acquire_ymfm(short** buf, size_t len) {
|
||||
static int os[2];
|
||||
thread_local int os[2];
|
||||
|
||||
ymfm::ym2610::fm_engine* fme=fm->debug_fm_engine();
|
||||
ymfm::ssg_engine* ssge=fm->debug_ssg_engine();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue