Skip to content

Commit 5ab065b

Browse files
committed
added print statement to test confirming lockfree status
1 parent d106be4 commit 5ab065b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/test.c

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include <stdio.h>
55
#include <pthread.h>
66
#include <stdlib.h>
7+
#include <glib.h>
78

89
#include "chase_lev.h"
910

@@ -48,6 +49,10 @@ void stealer(void *n) {
4849

4950
int main(int argc, char *argv[]) {
5051

52+
#ifdef G_ATOMIC_LOCK_FREE
53+
printf("lock free!\n");
54+
#endif
55+
5156
// a "real" test of the Chase-Lev deque
5257

5358
int n = atoi(argv[1]);

0 commit comments

Comments
 (0)