Skip to content

Commit e199fec

Browse files
author
Vladimir Kotal
committed
move racing code fixed with POSIX semaphores to common directory
1 parent 8ad46e0 commit e199fec

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

race/Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
# TODO: enable atomic-add once Travis has gcc 4.9 (issue #9)
2-
PROGS=fcntl-fixed-race race sem-fixed-race
2+
PROGS=fcntl-fixed-race race sem-fixed-race posix-sem-fixed-race
33

44
all: $(PROGS)
55

66
atomic-add: CSTD = c11
77
atomic-add: atomic-add.o
88
$(CC) -o $@ $^ -lpthread
99

10+
posix-sem-fixed-race: posix-sem-fixed-race.o
11+
$(CC) -o $@ $^ -lpthread
12+
1013
fcntl-fixed-race: fcntl-fixed-race.o
1114
$(CC) -o $@ $^
1215

File renamed without changes.

semaphores/Makefile

-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
PROGS=sem \
2-
posix-sem-fixed-race \
32
talking-heads
43

54
all: $(PROGS)
65

76
sem: sem.o
87
$(CC) -o $@ $^ -lpthread
98

10-
posix-sem-fixed-race: posix-sem-fixed-race.o
11-
$(CC) -o $@ $^ -lpthread
12-
139
talking-heads: talking-heads.o
1410
$(CC) -o $@ $^ -lpthread
1511

0 commit comments

Comments
 (0)