aboutsummaryrefslogtreecommitdiffstats
path: root/main/taskprocessor.c
AgeCommit message (Collapse)AuthorFilesLines
2008-06-23make solaris happy...pointed out by snuff-home on IRCdhubbard1-8/+8
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@124707 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-10Properly initialize the cli_ping condition and lockrussell1-1/+5
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121402 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-10Change system header includes to be like how it is done in other filesrussell1-2/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121401 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-09Initialize the lock and destroy lock and cond in the destructor (thanks, ↵twilson1-1/+6
mmichelson) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@121365 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-29Had to move the ASTERISK_FILE_VERSION decl to just after the include of ↵murf1-1/+2
"asterisk.h" or you get undefined variable errors when you are compiling under the influence of MTX_PROFILE git-svn-id: http://svn.digium.com/svn/asterisk/trunk@119074 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-15Use casts or intermediate variables to remove a numberrizzo1-1/+1
of platform/compiler-dependent warnings when handing struct timeval fields, both reading and printing them. It is a lost battle to handle the different ways struct timeval is handled on the various platforms and compilers, so try to be pragmatic and go through int/long which are universally supported. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@116557 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-03A taskprocessor is an object that has a name, a task queue, and an event ↵dhubbard1-0/+490
processing thread. Modules reference a taskprocessor, push tasks into the taskprocessor as needed, and unreference the taskprocessor when the taskprocessor is no longer needed. A task wraps a callback function pointer and a data pointer and is managed internal to the taskprocessor subsystem. The callback function is responsible for releasing task data. Taskprocessor API * ast_taskprocessor_get(..) - returns a reference to a taskprocessor * ast_taskprocessor_unreference(..) - releases reference to a taskprocessor * ast_taskprocessor_push(..) - push a task into a taskprocessor queue Check doxygen for more details git-svn-id: http://svn.digium.com/svn/asterisk/trunk@115268 f38db490-d61c-443f-a65b-d21fe96a405b