|
vdr 2.8.1
|
#include "thread.h"#include <cxxabi.h>#include <dlfcn.h>#include <errno.h>#include <execinfo.h>#include <linux/unistd.h>#include <malloc.h>#include <stdarg.h>#include <stdlib.h>#include <sys/prctl.h>#include <sys/resource.h>#include <sys/syscall.h>#include <sys/time.h>#include <sys/wait.h>#include <unistd.h>#include "tools.h"Go to the source code of this file.
Classes | |
| class | cStateLockLog |
Macros | |
| #define | ABORT { dsyslog("ABORT!"); cBackTrace::BackTrace(); abort(); } |
| #define | DEBUG_LOCKSEQ |
| #define | dbglocking(a...) |
| #define | THREAD_STOP_TIMEOUT 3000 |
| #define | THREAD_STOP_SLEEP 30 |
| #define | BT_BUF_SIZE 100 |
| #define | SLL_SIZE 20 |
| #define | SLL_LENGTH 512 |
| #define | SLL_THREADS 20 |
| #define | SLL_MAX_LIST 9 |
| #define | SLL_WRITE_FLAG 0x80000000 |
| #define | SLL_LOCK_FLAG 0x40000000 |
| #define | dbglockseq(n, l, w) |
Functions | |
| static bool | GetAbsTime (struct timespec *Abstime, int MillisecondsFromNow) |
| int | SystemExec (const char *Command, bool Detached) |
Variables | |
| static cStateLockLog | StateLockLog |
| #define ABORT { dsyslog("ABORT!"); cBackTrace::BackTrace(); abort(); } |
Definition at line 27 of file thread.c.
Referenced by cStateLock::Lock(), cStateKey::Remove(), cStateLock::SetExplicitModify(), cStateLock::SetModified(), cStateLock::SetSyncStateKey(), cStateKey::StateChanged(), cStateLock::Unlock(), and cStateKey::~cStateKey().
| #define BT_BUF_SIZE 100 |
Definition at line 441 of file thread.c.
Referenced by cBackTrace::BackTrace(), and cBackTrace::GetCaller().
| #define dbglocking | ( | a... | ) |
Definition at line 36 of file thread.c.
Referenced by cStateLock::Lock(), cStateLock::SetSyncStateKey(), and cStateLock::Unlock().
| #define dbglockseq | ( | n, | |
| l, | |||
| w ) |
Definition at line 709 of file thread.c.
Referenced by cStateLock::Lock(), and cStateLock::Unlock().
| #define SLL_LENGTH 512 |
Definition at line 562 of file thread.c.
Referenced by cStateLockLog::Check(), and cStateLockLog::Dump().
| #define SLL_LOCK_FLAG 0x40000000 |
Definition at line 566 of file thread.c.
Referenced by cStateLockLog::Check(), and cStateLockLog::Dump().
| #define SLL_MAX_LIST 9 |
Definition at line 564 of file thread.c.
Referenced by cStateLockLog::Check(), and cStateLockLog::Dump().
| #define SLL_SIZE 20 |
Definition at line 561 of file thread.c.
Referenced by cStateLockLog::Check(), and cStateLockLog::Dump().
| #define SLL_THREADS 20 |
Definition at line 563 of file thread.c.
Referenced by cStateLockLog::Check().
| #define SLL_WRITE_FLAG 0x80000000 |
Definition at line 565 of file thread.c.
Referenced by cStateLockLog::Check(), and cStateLockLog::Dump().
| #define THREAD_STOP_SLEEP 30 |
Definition at line 303 of file thread.c.
Referenced by cThread::Start().
| #define THREAD_STOP_TIMEOUT 3000 |
Definition at line 302 of file thread.c.
Referenced by cThread::Start().
|
static |
Definition at line 39 of file thread.c.
References max().
Referenced by cRwLock::Lock(), cCondVar::TimedWait(), and cCondWait::Wait().
| int SystemExec | ( | const char * | Command, |
| bool | Detached ) |
Definition at line 1043 of file thread.c.
References LOG_ERROR_STR.
Referenced by cShutdownHandler::CallShutdownCommand(), and cRecordingUserCommand::InvokeCommand().
|
static |