[libmath-prime-util-perl] 24/33: Remove the empty function call entirely for non-threads
Partha P. Mukherjee
ppm-guest at moszumanska.debian.org
Thu May 21 18:51:43 UTC 2015
This is an automated email from the git hooks/post-receive script.
ppm-guest pushed a commit to annotated tag v0.37
in repository libmath-prime-util-perl.
commit bdbbdcf109f1587853cec24806321ef5f0cdf786
Author: Dana Jacobsen <dana at acm.org>
Date: Fri Jan 24 13:03:08 2014 -0800
Remove the empty function call entirely for non-threads
---
cache.c | 2 ++
cache.h | 4 ++++
2 files changed, 6 insertions(+)
diff --git a/cache.c b/cache.c
index 365a066..5a51793 100644
--- a/cache.c
+++ b/cache.c
@@ -158,10 +158,12 @@ UV get_prime_cache(UV n, const unsigned char** sieve)
#endif
}
+#ifdef USE_ITHREADS
void release_prime_cache(const unsigned char* mem) {
(void)mem; /* We don't currently care about the pointer */
READ_LOCK_END;
}
+#endif
diff --git a/cache.h b/cache.h
index 8a50f01..b553871 100644
--- a/cache.h
+++ b/cache.h
@@ -30,7 +30,11 @@ extern void _prime_memfreeall(void);
*/
extern UV get_prime_cache(UV n, const unsigned char** sieve);
/* Inform the system we're done using the primary cache if we got a ptr. */
+#ifdef USE_ITHREADS
extern void release_prime_cache(const unsigned char* sieve);
+#else
+ #define release_prime_cache(mem)
+#endif
/* Get the segment cache. Set size to its size. */
extern unsigned char* get_prime_segment(UV* size);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmath-prime-util-perl.git
More information about the Pkg-perl-cvs-commits
mailing list