aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/lock.h
AgeCommit message (Collapse)AuthorFilesLines
2007-07-24Oops, res contains the error code, not errno. I was wondering why a mutex ↵tilghman1-1/+1
was reporting "No such file or directory"... git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@76934 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-12We can't use the assembler version of fetchadd_int under Intel Macs. (issue ↵file1-1/+1
#9254 reported by darrell budic) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@58832 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-21Fix random crashes when using the MeetMe application. This patch converts listrussell1-0/+27
handling to use the linked list macros and most importantly, implements reference counting on the ast_conference objects. The reference counting was first backported from 1.4. However, that code has some problems that caused the reference count to never hit zero. Those problems are fixed in this patch and will be resolved in 1.4 and trunk next, with a different patch. (issues #7647, #9073, #9106, BE-115). git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@55750 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-03Revert some changes that accidentally got committed as a part of another fix.russell1-27/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@53134 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-03set the DIALSTATUS variable to contain "INVALIDARGS" when the dial applicationrussell1-0/+27
exits early because of invalid arguments instead of just leaving it empty. (issue #8975) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@53133 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-30Properly handle an ETIMEDOUT result from pthread_cond_timedwait (issue #7318 ↵file1-1/+1
reported by arkadia) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@41390 f38db490-d61c-443f-a65b-d21fe96a405b
2006-05-23backport some mutex initialization and linked list handling fixes from trunkkpfleming1-6/+15
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@29732 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-29git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7221 ↵kpfleming1-0/+0
f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-29do the multiple-lock check for cond_wait properly...kpfleming1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7219 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-29if the lock protected a pthread_cond is held recursively, warn before ↵kpfleming1-0/+8
waiting onthe condition git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@7213 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-11issue #5668, modified to compile on non-Cygwin platforms :-)kpfleming1-8/+8
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7061 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-08issue #5570kpfleming1-1/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7022 f38db490-d61c-443f-a65b-d21fe96a405b
2005-11-01issue #4678kpfleming1-0/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6936 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-28fix non-DEBUG_THREADS builds with new cond wrappers and lock header ↵kpfleming1-33/+81
reorganization git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6879 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-28add 'ast_cond_t' type for pthread condition variables, and appropriate API ↵kpfleming1-17/+58
wrappers git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6877 f38db490-d61c-443f-a65b-d21fe96a405b
2005-10-24Doxygen documentation update from oej (issue #5505)russell1-3/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6847 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-09Make lock logging reentrant when DEBUG_THREADS enabledmarkster1-55/+77
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6555 f38db490-d61c-443f-a65b-d21fe96a405b
2005-09-01eliminate spurious warningskpfleming1-3/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6478 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-31make DEBUG_THREADS have more visible loggingkpfleming1-65/+195
make DEBUG_THREADS able to catch locks being unlocked by threads that did not own them add proper wrappers for pthread_cond_wait() and pthread_cond_timedwait() for DEBUG_THREADS mode git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6464 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-30major header file cleanup: license, copyrights, descriptions, markers, etc.kpfleming1-5/+14
remove deprecated config_old.c/config_old.h remove unused cvsid.h git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6454 f38db490-d61c-443f-a65b-d21fe96a405b
2005-08-09eliminate compiler warnings when DEBUG_THREADS is enabledkpfleming1-1/+17
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6313 f38db490-d61c-443f-a65b-d21fe96a405b
2005-07-26correct commentkpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6225 f38db490-d61c-443f-a65b-d21fe96a405b
2005-06-23Fix debugging to not print warningsmarkster1-14/+14
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5981 f38db490-d61c-443f-a65b-d21fe96a405b
2005-02-08Minor deadlock detect fix (bug #3531)markster1-4/+6
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4986 f38db490-d61c-443f-a65b-d21fe96a405b
2005-01-21update copyright headers for 2005russell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4868 f38db490-d61c-443f-a65b-d21fe96a405b
2004-12-14Merge slimey's Solaris compatibility (with small mods) (bug #2740)markster1-0/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4446 f38db490-d61c-443f-a65b-d21fe96a405b
2004-10-20Fix initialization tiddly bitmarkster1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4039 f38db490-d61c-443f-a65b-d21fe96a405b
2004-10-20Fix typo and missing format string in a fprintf in lock.hcitats1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4038 f38db490-d61c-443f-a65b-d21fe96a405b
2004-10-17Thread fixes, vm fix (bug #2665)markster1-0/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4030 f38db490-d61c-443f-a65b-d21fe96a405b
2004-10-06Locking updates for debug mode, fix SIP MWI (bug #2582)markster1-7/+18
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3918 f38db490-d61c-443f-a65b-d21fe96a405b
2004-08-08Merge BSD stack size work (bug #2067)markster1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3596 f38db490-d61c-443f-a65b-d21fe96a405b
2004-06-22Code formatting cleanups in utils.c and include/asterisk/lock.hcitats1-57/+56
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3278 f38db490-d61c-443f-a65b-d21fe96a405b
2004-06-22Merge major BSD mutex and symbol conflict patches (bug #1816) (link patch ↵markster1-62/+149
still pending) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3273 f38db490-d61c-443f-a65b-d21fe96a405b
2004-06-09Lock fixes for FreeBSD (bug #1810)markster1-12/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3179 f38db490-d61c-443f-a65b-d21fe96a405b
2004-06-09Merge FreeBSD locking fixes (bug #1411)markster1-31/+123
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3176 f38db490-d61c-443f-a65b-d21fe96a405b
2004-05-24Fix potential segfault, add support for MacOS X locksmarkster1-0/+8
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3058 f38db490-d61c-443f-a65b-d21fe96a405b
2004-05-09Add new file utils.c, Move ast_gethostbyname to utils.ccitats1-6/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2931 f38db490-d61c-443f-a65b-d21fe96a405b
2004-04-22gethostbyname isn't reentrant, who knew...markster1-0/+8
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2734 f38db490-d61c-443f-a65b-d21fe96a405b
2004-04-19Fix lock initialization in lock debugging modemarkster1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2711 f38db490-d61c-443f-a65b-d21fe96a405b
2004-04-12Revert locking changes which break static locks (even on linux since it's ↵markster1-11/+11
part of an ENUM not define) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2679 f38db490-d61c-443f-a65b-d21fe96a405b
2004-04-12Change mutex defines so it should work on OS that don't have the _NP mutex ↵citats1-11/+11
types. Also move the #defines up so we don't need to duplicate them git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2678 f38db490-d61c-443f-a65b-d21fe96a405b
2004-04-06Don't redefine ast_mutex_initmarkster1-1/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2642 f38db490-d61c-443f-a65b-d21fe96a405b
2004-04-06Update locking for non-debug mode, toomarkster1-6/+11
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2641 f38db490-d61c-443f-a65b-d21fe96a405b
2004-04-06Bite the bullet and require RECURSIVE mutexesmarkster1-16/+5
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2640 f38db490-d61c-443f-a65b-d21fe96a405b
2004-04-01Expand SIP opaque buffers, prefer recursive to "error checking" mutexes...markster1-3/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2596 f38db490-d61c-443f-a65b-d21fe96a405b
2004-03-20Add some comments to lock.hcitats1-3/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2484 f38db490-d61c-443f-a65b-d21fe96a405b
2004-03-15Actually commit the new #definescitats1-0/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2436 f38db490-d61c-443f-a65b-d21fe96a405b
2003-08-26Make debugging possible by using #define's instead of inlinesmarkster1-34/+13
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1437 f38db490-d61c-443f-a65b-d21fe96a405b
2003-08-13Add crash optionmarkster1-2/+11
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1317 f38db490-d61c-443f-a65b-d21fe96a405b
2003-08-13Totally revamp thread debugging to support locating and removing deadlocksmarkster1-34/+113
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1310 f38db490-d61c-443f-a65b-d21fe96a405b