diff options
author | erorcun <erayorcunus@gmail.com> | 2020-08-08 13:58:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-08 13:58:42 +0200 |
commit | 8428b99c0d3475f36661fbc4d466d464497c1674 (patch) | |
tree | 755d20dba2c3e5e74698d2effb9f3bf59443b04f /src/core | |
parent | Merge pull request #680 from ShFil119/actions (diff) | |
parent | fixed line formatting (diff) | |
download | re3-8428b99c0d3475f36661fbc4d466d464497c1674.tar re3-8428b99c0d3475f36661fbc4d466d464497c1674.tar.gz re3-8428b99c0d3475f36661fbc4d466d464497c1674.tar.bz2 re3-8428b99c0d3475f36661fbc4d466d464497c1674.tar.lz re3-8428b99c0d3475f36661fbc4d466d464497c1674.tar.xz re3-8428b99c0d3475f36661fbc4d466d464497c1674.tar.zst re3-8428b99c0d3475f36661fbc4d466d464497c1674.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/CdStreamPosix.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/core/CdStreamPosix.cpp b/src/core/CdStreamPosix.cpp index 45fd9832..e114a29a 100644 --- a/src/core/CdStreamPosix.cpp +++ b/src/core/CdStreamPosix.cpp @@ -150,9 +150,11 @@ CdStreamInit(int32 numChannels) ASSERT(0); return; } - +#ifdef __linux__ _gdwCdStreamFlags = O_RDONLY | O_NOATIME; - +#else + _gdwCdStreamFlags = O_RDONLY; +#endif // People say it's slower /* if ( fsInfo.f_bsize <= CDSTREAM_SECTOR_SIZE ) @@ -400,9 +402,12 @@ void *CdStreamThread(void *param) if (gCdStreamThreadStatus == 0){ gCdStreamThreadStatus = 1; #endif + +#ifdef __linux__ pid_t tid = syscall(SYS_gettid); int ret = setpriority(PRIO_PROCESS, tid, getpriority(PRIO_PROCESS, getpid()) + 1); - } +#endif + } // spurious wakeup or we sent interrupt signal for flushing if(pChannel->nSectorsToRead == 0) |