C header boilerplate for LockFreeRegistry.h
Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/87e9aeaa Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/87e9aeaa Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/87e9aeaa Branch: refs/heads/master Commit: 87e9aeaa104be832dea8bed264de445a2e0502f2 Parents: 06a7e80 Author: Nick Wellnhofer <[email protected]> Authored: Thu Jul 16 19:15:44 2015 +0200 Committer: Nick Wellnhofer <[email protected]> Committed: Thu Jul 23 15:34:18 2015 +0200 ---------------------------------------------------------------------- runtime/core/Clownfish/LockFreeRegistry.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/87e9aeaa/runtime/core/Clownfish/LockFreeRegistry.h ---------------------------------------------------------------------- diff --git a/runtime/core/Clownfish/LockFreeRegistry.h b/runtime/core/Clownfish/LockFreeRegistry.h index 6bc803e..065c8bf 100644 --- a/runtime/core/Clownfish/LockFreeRegistry.h +++ b/runtime/core/Clownfish/LockFreeRegistry.h @@ -14,6 +14,15 @@ * limitations under the License. */ +#ifndef H_CLOWNFISH_LOCKFREEREGISTRY +#define H_CLOWNFISH_LOCKFREEREGISTRY 1 + +#include <stddef.h> + +#ifdef __cplusplus +extern "C" { +#endif + /** Specialized lock free hash table for storing Classes. */ @@ -43,3 +52,9 @@ cfish_LFReg_fetch(cfish_LockFreeRegistry *self, struct cfish_String *key); #define LFReg_fetch cfish_LFReg_fetch #endif +#ifdef __cplusplus +} +#endif + +#endif /* H_CLOWNFISH_LOCKFREEREGISTRY */ +
