THUKEG / saedb

the SAE platform
http://thukeg.github.com/saedb/
11 stars 19 forks source link

Multi threading to engine #62

Closed wweic closed 11 years ago

wweic commented 11 years ago

TODO:

  1. set CPU affinity
  2. gflags? now thread num is hard coded.
thinxer commented 11 years ago

There's only a synchronous engine yet, so we don't need a scheduler, right?

wweic commented 11 years ago

@thinxer yes, asyn engine is not impled.

thinxer commented 11 years ago

Here's a fix to cmake files.

diff --git a/src/saedb/util/CMakeLists.txt b/src/saedb/util/CMakeLists.txt index 8e4a27c..962ffaf 100644 --- a/src/saedb/util/CMakeLists.txt +++ b/src/saedb/util/CMakeLists.txt @@ -6,8 +6,11 @@ set(THREADPOOL_LIBRARY_SOURCES "thread_pool.cpp" )

+find_package(Threads REQUIRED) + add_library(thread_pool ${THREADPOOL_LIBRARY_SOURCES}) +target_link_libraries(thread_pool ${CMAKE_THREAD_LIBS_INIT}) add_executable(threading_test threadpool_test.cpp) -target_link_libraries(threading_test sae_test) +target_link_libraries(threading_test thread_pool sae_test) add_test(NAME threading_test COMMAND threading_test)

thinxer commented 11 years ago

Well, nobody is working on this anymore. Closing for now.