This repository has been archived by the owner. It is now read-only.
Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
added FreeBSD support
- Loading branch information
Showing
with
8 additions
and
3 deletions.
-
+8
−3
src/core/CdStreamPosix.cpp
There are no files selected for viewing
|
|
@@ -150,9 +150,11 @@ CdStreamInit(int32 numChannels) |
|
|
ASSERT(0); |
|
|
return; |
|
|
} |
|
|
|
|
|
#ifdef __linux__ |
|
|
_gdwCdStreamFlags = O_RDONLY | O_NOATIME; |
|
|
|
|
|
#elif __FreeBSD__ |
|
|
_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) |
|
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.