diff options
author | Mark Michelson <mmichelson@digium.com> | 2013-01-07 22:56:37 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2013-01-07 22:56:37 +0000 |
commit | a08847c270f98550d8f2ffe141ae923fd941b6b7 (patch) | |
tree | 1b4ab6b828c11ac5454a0b02d2ebda2c2776a255 /main | |
parent | bdd8da406bdce8dcb92104f8bcbbb8c42f57646d (diff) |
Add some doxygen and remove an unnecessary unlock.
git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@378653 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r-- | main/taskprocessor.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/main/taskprocessor.c b/main/taskprocessor.c index 9b26263bb..6ab0e1277 100644 --- a/main/taskprocessor.c +++ b/main/taskprocessor.c @@ -143,7 +143,10 @@ static int default_tps_idle(struct default_taskprocessor_listener_pvt *pvt) return pvt->dead; } -/* this is the task processing worker function */ +/*! + * \brief Function that processes tasks in the taskprocessor + * \internal + */ static void *tps_processing_function(void *data) { struct ast_taskprocessor_listener *listener = data; @@ -508,7 +511,6 @@ struct ast_taskprocessor *ast_taskprocessor_get(const char *name, enum ast_tps_o } p = ao2_find(tps_singletons, name, OBJ_KEY); if (p) { - ao2_unlock(tps_singletons); return p; } if (create & TPS_REF_IF_EXISTS) { |