diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-10 20:59:49 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-10 20:59:49 +0000 |
commit | 393af89e5138d88de1bfaf0dd48129b3d81a8f8f (patch) | |
tree | 58d03f1f7f30aec62c4404907143bc822208db8c /include | |
parent | d6d5d65345f869d17cd13525387a735b4f7e5fcd (diff) |
Fix 1.4 build when LOW_MEMORY is enabled.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@114051 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/lock.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/asterisk/lock.h b/include/asterisk/lock.h index 8a3ed1d5f..cc68a13aa 100644 --- a/include/asterisk/lock.h +++ b/include/asterisk/lock.h @@ -141,18 +141,31 @@ enum ast_lock_type { * lock info struct. The lock is marked as pending as the thread is waiting * on the lock. ast_mark_lock_acquired() will mark it as held by this thread. */ +#if !defined(LOW_MEMORY) void ast_store_lock_info(enum ast_lock_type type, const char *filename, int line_num, const char *func, const char *lock_name, void *lock_addr); +#else +#define ast_store_lock_info(I,DONT,CARE,ABOUT,THE,PARAMETERS) +#endif + /*! * \brief Mark the last lock as acquired */ +#if !defined(LOW_MEMORY) void ast_mark_lock_acquired(void *lock_addr); +#else +#define ast_mark_lock_acquired(ignore) +#endif /*! * \brief Mark the last lock as failed (trylock) */ +#if !defined(LOW_MEMORY) void ast_mark_lock_failed(void *lock_addr); +#else +#define ast_mark_lock_failed(ignore) +#endif /*! * \brief remove lock info for the current thread @@ -160,7 +173,11 @@ void ast_mark_lock_failed(void *lock_addr); * this gets called by ast_mutex_unlock so that information on the lock can * be removed from the current thread's lock info struct. */ +#if !defined(LOW_MEMORY) void ast_remove_lock_info(void *lock_addr); +#else +#define ast_remove_lock_info(ignore) +#endif static void __attribute__((constructor)) init_empty_mutex(void) { |