mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
310ac02ad7
The test uses pthread to calculate the factorial of 12, with one thread for each multiplication. pthread_mutex is used for synchronization.
15 lines
368 B
Makefile
15 lines
368 B
Makefile
export PROJECT = test_pthread_cooperation
|
|
include ../Makefile.tests_common
|
|
|
|
USEMODULE += posix
|
|
USEMODULE += pthread
|
|
|
|
ifeq ($(BOARD),native)
|
|
CFLAGS += -isystem $(RIOTBASE)/sys/posix/pthread/include
|
|
else
|
|
export INCLUDES = -I$(RIOTBASE)/sys/posix/pthread/include \
|
|
-I$(RIOTBASE)/sys/posix/include
|
|
endif
|
|
|
|
include $(RIOTBASE)/Makefile.include
|