Skip to content

Commit

Permalink
Merge pull request #11 from zeyugao/master
Browse files Browse the repository at this point in the history
Handle definition properly under C++
  • Loading branch information
trigonak authored Oct 4, 2021
2 parents 85c8800 + 3bdd354 commit b86ea2c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion include/clht.h
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,11 @@ _mm_pause_rep(uint64_t w)
/* inteface */
/* ******************************************************************************** */

#ifdef __cplusplus
extern "C"
{
#endif

/* Create a new hashtable. */
clht_t* clht_create(uint64_t num_buckets);
/* initializes the necessary per-thread structures for the hash table */
Expand All @@ -360,7 +365,9 @@ void clht_print(clht_hashtable_t* hashtable);
For example, CLHT-LB-RESIZE */
const char* clht_type_desc();


#ifdef __cplusplus
}
#endif

/* internal */
extern void clht_gc_thread_version(clht_hashtable_t* h);
Expand Down

0 comments on commit b86ea2c

Please sign in to comment.