thread: move Thread_base::myself() to separate file

The thread library (thread.cc) in base-foc shared 95% of the code with
the generic implementation except myself(). Therefore, its
implementation is now separated from the other generic sources into
myself.cc, which allows base-foc to use a foc-specific primitive to
enable our base libraries in L4Linux.

Issue #1491
This commit is contained in:
Christian Helmuth
2015-04-28 17:42:07 +02:00
parent 55c0a947e4
commit 98def2488a
15 changed files with 76 additions and 244 deletions

View File

@ -23,7 +23,7 @@ SRC_CC = main.cc \
thread_linux.cc \
context_area.cc \
core_printf.cc \
thread.cc
thread.cc myself.cc
INC_DIR += $(REP_DIR)/src/core/include \
$(GEN_CORE_DIR)/include \
@ -58,5 +58,6 @@ vpath signal_source_component.cc $(GEN_CORE_DIR)
vpath trace_session_component.cc $(GEN_CORE_DIR)
vpath core_printf.cc $(BASE_DIR)/src/base/console
vpath thread.cc $(BASE_DIR)/src/base/thread
vpath myself.cc $(BASE_DIR)/src/base/thread
vpath trace.cc $(BASE_DIR)/src/base/thread
vpath %.cc $(PRG_DIR)