mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:37:35 +00:00
LibThread: Introduce a new threading library
This library is meant to provide C++-style wrappers over lower level APIs such as syscalls and pthread_* functions, as well as utilities for easily running pieces of logic on different threads.
This commit is contained in:
parent
d5f3487203
commit
e1a6f8a27d
9 changed files with 211 additions and 3 deletions
21
Libraries/LibThread/Makefile
Normal file
21
Libraries/LibThread/Makefile
Normal file
|
@ -0,0 +1,21 @@
|
|||
include ../../Makefile.common
|
||||
|
||||
OBJS = \
|
||||
Thread.o \
|
||||
BackgroundAction.o
|
||||
|
||||
LIBRARY = libthread.a
|
||||
DEFINES += -DUSERLAND
|
||||
|
||||
all: $(LIBRARY)
|
||||
|
||||
$(LIBRARY): $(OBJS)
|
||||
@echo "LIB $@"; $(AR) rcs $@ $(OBJS) $(LIBS)
|
||||
|
||||
.cpp.o:
|
||||
@echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $<
|
||||
|
||||
-include $(OBJS:%.o=%.d)
|
||||
|
||||
clean:
|
||||
@echo "CLEAN"; rm -f $(LIBRARY) $(OBJS) *.d
|
Loading…
Add table
Add a link
Reference in a new issue