1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Adapted cThread::ThreadId() to recent kernels

This commit is contained in:
Klaus Schmidinger 2006-08-20 10:28:35 +02:00
parent e68171626e
commit ef01c6d8bb
3 changed files with 5 additions and 5 deletions

View File

@ -1626,6 +1626,7 @@ Ville Skytt
thread.c caused a compiler warning with g++ 4.1.1 thread.c caused a compiler warning with g++ 4.1.1
for fixing converting the port number in the "connect from..." log message of SVDRP for fixing converting the port number in the "connect from..." log message of SVDRP
for reporting that there are places where ntohs() is assigned to different types for reporting that there are places where ntohs() is assigned to different types
for adapting cThread::ThreadId() to recent kernels
Steffen Beyer <cpunk@reactor.de> Steffen Beyer <cpunk@reactor.de>
for fixing setting the colored button help after deleting a recording in case the next for fixing setting the colored button help after deleting a recording in case the next

View File

@ -4875,10 +4875,11 @@ Video Disk Recorder Revision History
- Added a log error message to cPlugin::ConfigDirectory() in case a plugin calls it - Added a log error message to cPlugin::ConfigDirectory() in case a plugin calls it
from a separate thread (reported by Udo Richter). from a separate thread (reported by Udo Richter).
2006-08-14: Version 1.4.1-5 2006-08-20: Version 1.4.1-5
- Replaced the "quick workaround for additional live audio PIDs" in - Replaced the "quick workaround for additional live audio PIDs" in
cDvbDevice::SetChannelDevice() with an actual solution in cDvbDevice::SetChannelDevice() with an actual solution in
cDvbDevice::SetAudioTrackDevice() in order to prevent sticky PIDs in CAMs, cDvbDevice::SetAudioTrackDevice() in order to prevent sticky PIDs in CAMs,
which caused long switching times or completely blank screens when switching which caused long switching times or completely blank screens when switching
between encrypted channels on the same transponder (reported by Tomas Berglund). between encrypted channels on the same transponder (reported by Tomas Berglund).
- Adapted cThread::ThreadId() to recent kernels (thanks to Ville Skyttä).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: thread.c 1.56 2006/06/24 10:10:58 kls Exp $ * $Id: thread.c 1.57 2006/08/20 10:20:44 kls Exp $
*/ */
#include "thread.h" #include "thread.h"
@ -316,11 +316,9 @@ bool cThread::EmergencyExit(bool Request)
return emergencyExitRequested = true; // yes, it's an assignment, not a comparison! return emergencyExitRequested = true; // yes, it's an assignment, not a comparison!
} }
_syscall0(pid_t, gettid)
tThreadId cThread::ThreadId(void) tThreadId cThread::ThreadId(void)
{ {
return gettid(); return syscall(__NR_gettid);
} }
void cThread::SetMainThreadId(void) void cThread::SetMainThreadId(void)