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
|
|
@ -160,9 +160,9 @@ const int orderedOpsL[4]={
|
|||
#define ADDR_LR_FB_ALG 0xc0
|
||||
|
||||
void DivPlatformOPL::acquire_nuked(short** buf, size_t len) {
|
||||
static short o[4];
|
||||
static int os[4];
|
||||
static ymfm::ymfm_output<2> aOut;
|
||||
thread_local short o[4];
|
||||
thread_local int os[4];
|
||||
thread_local ymfm::ymfm_output<2> aOut;
|
||||
|
||||
for (size_t h=0; h<len; h++) {
|
||||
os[0]=0; os[1]=0; os[2]=0; os[3]=0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue