summaryrefslogtreecommitdiff
path: root/pjlib/src/pj/os_core_unix.c
AgeCommit message (Collapse)Author
2011-02-28Misc (re #1175): fixed link error in OpenBSD 4.6 caused by lack of ↵Benny Prijono
sched_get_priority_min() and sched_get_priority_max() git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3427 74dad513-b988-da41-8d7b-12977e46ad98
2010-11-18Misc (re #1151): support for sched_get_priority_max/min in OpenBSD (thanks ↵Benny Prijono
David Coppa for the patch) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3373 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-24Misc (re #1134): fixed wrong OpenBSD thread priority max value (thanks David ↵Benny Prijono
Coppa for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3320 74dad513-b988-da41-8d7b-12977e46ad98
2010-09-22Fixed #1132: Assertion when (re)starting PJLIB on different threadBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3314 74dad513-b988-da41-8d7b-12977e46ad98
2010-05-19Changed pj_thread_get_prio_max() to return 0 on OpenBSD because it doesn't ↵Benny Prijono
support it (thanks David Coppa for the patch)(re #1068) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3180 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-13Initial OpenBSD fixes (#994):Benny Prijono
pjlib: - Autoconf fixes in detecting header availability - Undefined sched_get_priority_max() and sched_get_priority_min() - protect with #ifdef _POSIX_PRIORITY_SCHEDULING, and - return hardcoded (0, 31) if __OpenBSD__ macro is declared - Better GUID generation pjlib-test: - Reduce the loop in PJILB activesock test - Fixed bug in ioqueue unregistration test which caused assertion error in destroying mutex pjlib-util-test: - Fixed bug in pjlib-util resolver test git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3057 74dad513-b988-da41-8d7b-12977e46ad98
2009-08-05Ticket #931: Logging function may infinitely recursively calls itself on ↵Benny Prijono
Windows Mobile (thanks Emil Sturniolo for the report) - Added feature to temporarily suspend the logging facility while we're in the pj_log() function. The suspension will be thread specific if the platform supports it. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2853 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-24Ticket #688: Memory leak on Solaris 10 with pjlib's mutex (thanks Andrey ↵Benny Prijono
Kobtsev for the fix) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2395 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-23Updated copyright notice in all files to Teluu Inc., and changed the year as ↵Benny Prijono
well git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2394 74dad513-b988-da41-8d7b-12977e46ad98
2008-08-15Ticket #595: Broken semaphore implementation on MacOS X (thanks Viktor ↵Benny Prijono
Krikun for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2217 74dad513-b988-da41-8d7b-12977e46ad98
2008-07-19Ticket #571: Coloring for logs in Linux/UNIX, two more spaces in logs and ↵Benny Prijono
runtime log colors configuration (thanks Ondrej.Sterbak) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2159 74dad513-b988-da41-8d7b-12977e46ad98
2008-06-20Large changeset to replace all occurences of year 2007 with 2008 in the ↵Benny Prijono
copyright notice git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2039 74dad513-b988-da41-8d7b-12977e46ad98
2008-04-22Workaround for pj_thread_sleep() failure with ETIMEDOUT in MacOS X (thanks ↵Benny Prijono
Daniel Mikusa) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1939 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-04Ticket #500: implementation of thread priority setting on os_core_unix.cBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1842 74dad513-b988-da41-8d7b-12977e46ad98
2008-03-04Ticket #500: Added function to set thread priority in PJLIBBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1841 74dad513-b988-da41-8d7b-12977e46ad98
2008-02-07Ticket #470, #471, and #472: Compile error when semaphore.h is not present, ↵Benny Prijono
Compilation error if pthread_mutexattr_set_type() is not present, and Problem with setting up FD_SETSIZE git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1783 74dad513-b988-da41-8d7b-12977e46ad98
2007-11-21Ticket #417: added pjlib API to retrieve the native thread handle from ↵Benny Prijono
pj_thread_t git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1589 74dad513-b988-da41-8d7b-12977e46ad98
2007-11-10Removed srand() call from pjlib initialization to let application supply the ↵Benny Prijono
random seed git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1567 74dad513-b988-da41-8d7b-12977e46ad98
2007-05-25Fixed ticket #300: Assertion error or handle leak when creating thread with ↵Benny Prijono
SUSPENDED state git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1304 74dad513-b988-da41-8d7b-12977e46ad98
2007-05-11HUGE changeset to make the rest of the libraries compile with C++ modeBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1266 74dad513-b988-da41-8d7b-12977e46ad98
2007-03-17Make it build cleanly on RedHat 7.3, gcc 2.96, linux-2.4.18 (also somebody ↵Benny Prijono
reported build error on Slack 7.1 git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1076 74dad513-b988-da41-8d7b-12977e46ad98
2007-03-15Fixed ticket #181: Failed compilation because usleep() does not return int ↵Benny Prijono
on some *nix platforms (thanks Jukka-Pekka Kervinen) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1068 74dad513-b988-da41-8d7b-12977e46ad98
2007-03-05Optimization on the log and add tracing on mutex trylockBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1042 74dad513-b988-da41-8d7b-12977e46ad98
2007-02-19Ticket #110: HUGE HUGE changeset to replace all occurence of year 2006 with ↵Benny Prijono
2007 in copyright notice in all sources git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@974 74dad513-b988-da41-8d7b-12977e46ad98
2007-01-22Give more useful information when assertion fails in pj_thread_this()Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@896 74dad513-b988-da41-8d7b-12977e46ad98
2006-12-01Changed critical section in os_core_unix.c to use recursive mutexBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@840 74dad513-b988-da41-8d7b-12977e46ad98
2006-12-01Fixed ticket #29: calling pjsua_init() to reinitialize the whole libraries ↵Benny Prijono
after pjsua_destroy() is called git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@839 74dad513-b988-da41-8d7b-12977e46ad98
2006-11-21Added pj_shutdown() on os_core_unix.cBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@816 74dad513-b988-da41-8d7b-12977e46ad98
2006-11-21Fixed handles leak upon program exit, by introducing pj_shutdown() and ↵Benny Prijono
pj_atexit(). Also fixed handle leaks in SIP transaction layer and SIP endpoint. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@815 74dad513-b988-da41-8d7b-12977e46ad98
2006-10-04Fixed compilation errors when threading is disabled (PJ_HAS_THREADS=0) and ↵Benny Prijono
safe ioqueue unregistration is disabled (PJ_IOQUEUE_HAS_SAFE_UNREG=0). Also increase PJ_IOQUEUE_MAX_HANDLES for minimum config to 16 in config_sample.h [thanks Olivier Gournet]. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@750 74dad513-b988-da41-8d7b-12977e46ad98
2006-10-03Fixed minor error in pj_thread_is_registered() API. The return value should ↵Benny Prijono
be pj_bool_t instead of pj_status_t. (Note: this change should not break anything). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@746 74dad513-b988-da41-8d7b-12977e46ad98
2006-09-12Fixed mutex leaking in Linux: pj_mutex_destroy() will fail to destroy the ↵Benny Prijono
mutex if the mutex is currently being held. Unfortunately it is quite common in the libraries to acquire the mutex first before destroying it, causing mutexes to leak. The solution is to retry unlocking/destroying the mutex several times (currently 4) while pthread_mutex_destroy() returns EBUSY git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@708 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-12Improved logging consistency and added more logging info in verbosity 6Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@675 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-11Added pj_thread_is_registeredBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@674 74dad513-b988-da41-8d7b-12977e46ad98
2006-08-11Increased width for sender column in log message, and added additional check ↵Benny Prijono
in pj_thread_register() git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@672 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-29Another take at fixing 64bit problems. PJ_MAX_OBJ_NAME is increased to 32 ↵Benny Prijono
chars (from 16), and check all those sprintf's especially the ones with "%p" format. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@635 74dad513-b988-da41-8d7b-12977e46ad98
2006-07-03Change all pj_memset to pj_bzero(), where applicableBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@582 74dad513-b988-da41-8d7b-12977e46ad98
2006-05-10Merge-in RTEMS port patch by Phil Torre <ptorre@zetron.com>, alpha release.Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@433 74dad513-b988-da41-8d7b-12977e46ad98
2006-03-20Ported pjlib to PowerPC/MacOSBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@338 74dad513-b988-da41-8d7b-12977e46ad98
2006-03-06Fixed bug in writing log when pj_init() is calledBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@304 74dad513-b988-da41-8d7b-12977e46ad98
2006-03-06Added version info on pj_init()Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@298 74dad513-b988-da41-8d7b-12977e46ad98
2006-02-26Fixed bug pj_thread_register() when same thread is re-registered with ↵Benny Prijono
different descriptor git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@233 74dad513-b988-da41-8d7b-12977e46ad98
2006-02-07Implement rwlock for LinuxBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@150 74dad513-b988-da41-8d7b-12977e46ad98
2005-11-21Set svn:eol-style for all filesBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@66 74dad513-b988-da41-8d7b-12977e46ad98
2005-11-18Pretty commentsBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@51 74dad513-b988-da41-8d7b-12977e46ad98
2005-11-13Applying license to pjprojectBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@49 74dad513-b988-da41-8d7b-12977e46ad98
2005-11-09Rework pjlib++Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/main@36 74dad513-b988-da41-8d7b-12977e46ad98
2005-11-08Linux alpha testBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/main@35 74dad513-b988-da41-8d7b-12977e46ad98
2005-11-06Tested new ioqueue framework on Linux with select and epollBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/main@14 74dad513-b988-da41-8d7b-12977e46ad98
2005-11-01Changed atomic interface and fixed bugs in echo test clientBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/main@5 74dad513-b988-da41-8d7b-12977e46ad98