mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Add ast_atomic_fetchadd_int_slow to check_expr for platforms that need it.
(closes issue #11484) Reported by: snuffy git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@92206 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -148,6 +148,14 @@ void parse_file(const char *fname);
|
|||||||
void ast_register_file_version(const char *file, const char *version) { }
|
void ast_register_file_version(const char *file, const char *version) { }
|
||||||
int ast_add_profile(const char *x, uint64_t scale) { return 0;}
|
int ast_add_profile(const char *x, uint64_t scale) { return 0;}
|
||||||
|
|
||||||
|
int ast_atomic_fetchadd_int_slow(volatile int *p, int v)
|
||||||
|
{
|
||||||
|
int ret;
|
||||||
|
ret = *p;
|
||||||
|
*p += v;
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
void ast_unregister_file_version(const char *file)
|
void ast_unregister_file_version(const char *file)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user