6e8546ac15
as a TV/PVR Backend to XBMC. It adds support for Live TV watching, replaying of Recordings, programming Timers and EPG TV Guide to use on same computer or over the Network. This add-on requires the installed "vdr-plugin-xvdr" plugin on the VDR server. VDR itself doen't need any patches or modification to use all the current features. WWW: https://github.com/pipelka/xbmc-addon-xvdr
23 lines
581 B
C++
23 lines
581 B
C++
--- a/src/xvdr/thread.h
|
|
+++ b/src/xvdr/thread.h
|
|
@@ -77,7 +77,11 @@ public:
|
|
void Unlock(void);
|
|
};
|
|
|
|
+#ifdef __FreeBSD__
|
|
+typedef pthread_t tThreadId;
|
|
+#else
|
|
typedef pid_t tThreadId;
|
|
+#endif
|
|
|
|
class cThread {
|
|
friend class cThreadLock;
|
|
@@ -124,7 +128,7 @@ public:
|
|
bool Active(void);
|
|
///< Checks whether the thread is still alive.
|
|
static tThreadId ThreadId(void);
|
|
- static tThreadId IsMainThread(void) { return ThreadId() == mainThreadId; }
|
|
+ static int IsMainThread(void) { return ThreadId() == mainThreadId; }
|
|
static void SetMainThreadId(void);
|
|
};
|
|
|