summaryrefslogtreecommitdiffstats
path: root/src/core/CdStreamPosix.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-08-10 18:15:51 +0200
committerSergeanur <s.anureev@yandex.ua>2020-08-10 18:15:51 +0200
commit1c1fa25e6cb8b6b49523abf11c88bc4b326668cd (patch)
tree3c595b1c81bb2ffb3390631673af1b3ab30c2bcd /src/core/CdStreamPosix.cpp
parentMerge pull request #677 from majesticCoding/miami (diff)
parentupdate librw (diff)
downloadre3-1c1fa25e6cb8b6b49523abf11c88bc4b326668cd.tar
re3-1c1fa25e6cb8b6b49523abf11c88bc4b326668cd.tar.gz
re3-1c1fa25e6cb8b6b49523abf11c88bc4b326668cd.tar.bz2
re3-1c1fa25e6cb8b6b49523abf11c88bc4b326668cd.tar.lz
re3-1c1fa25e6cb8b6b49523abf11c88bc4b326668cd.tar.xz
re3-1c1fa25e6cb8b6b49523abf11c88bc4b326668cd.tar.zst
re3-1c1fa25e6cb8b6b49523abf11c88bc4b326668cd.zip
Diffstat (limited to 'src/core/CdStreamPosix.cpp')
-rw-r--r--src/core/CdStreamPosix.cpp11
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)