diff --git a/CMakeLists.txt b/CMakeLists.txt index 2253d19..28566a2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,7 @@ set(CMAKE_CXX_STANDARD_EXTENSIONS OFF) option(SLED_BUILD_BENCHMARK "Build benchmark" OFF) option(SLED_BUILD_TESTS "Build tests" OFF) option(SLED_BUILD_FUZZ "Build fuzzer test" OFF) -option(SLED_LOCATION_PATH "" "sled/src/system/location.cc") +option(SLED_LOCATION_PATH "" "sled/src/sled/system/location.cc") set(BUILD_STATIC ON) set(BUILD_RTTR_DYNAMIC OFF) @@ -40,43 +40,43 @@ if(SLED_LOCATION_PATH) sled PRIVATE __SLED_LOCATION_PATH="${SLED_LOCATION_PATH}") endif() # add_subdirectory(3party/eigen EXCLUDE_FROM_ALL) -target_include_directories(sled PUBLIC include 3party/eigen 3party/inja +target_include_directories(sled PUBLIC src/ 3party/eigen 3party/inja 3party/rxcpp) target_sources( sled - PRIVATE src/async/async.cc - src/filesystem/path.cc - src/log/log.cc - src/network/async_resolver.cc - src/network/ip_address.cc - src/network/null_socket_server.cc - src/network/physical_socket_server.cc - src/network/socket_address.cc - src/network/socket_server.cc - src/profiling/profiling.cc - src/strings/base64.cc - src/strings/utils.cc - src/synchronization/event.cc - src/synchronization/mutex.cc - src/synchronization/sequence_checker.cc - src/synchronization/thread_local.cc - src/system/location.cc - src/system/pid.cc - src/system/thread.cc - src/system/thread_pool.cc - src/task_queue/pending_task_safety_flag.cc - src/task_queue/task_queue_base.cc - src/timer/task_queue_timeout.cc - src/timer/timer.cc - src/units/time_delta.cc - src/units/timestamp.cc - src/operations_chain.cc - src/random.cc - src/sigslot.cc - src/status.cc - src/system_time.cc - src/time_utils.cc - src/uri.cc) + PRIVATE src/sled/async/async.cc + src/sled/filesystem/path.cc + src/sled/log/log.cc + src/sled/network/async_resolver.cc + src/sled/network/ip_address.cc + src/sled/network/null_socket_server.cc + src/sled/network/physical_socket_server.cc + src/sled/network/socket_address.cc + src/sled/network/socket_server.cc + src/sled/profiling/profiling.cc + src/sled/strings/base64.cc + src/sled/strings/utils.cc + src/sled/synchronization/event.cc + src/sled/synchronization/mutex.cc + src/sled/synchronization/sequence_checker.cc + src/sled/synchronization/thread_local.cc + src/sled/system/location.cc + src/sled/system/pid.cc + src/sled/system/thread.cc + src/sled/system/thread_pool.cc + src/sled/task_queue/pending_task_safety_flag.cc + src/sled/task_queue/task_queue_base.cc + src/sled/timer/task_queue_timeout.cc + src/sled/timer/timer.cc + src/sled/units/time_delta.cc + src/sled/units/timestamp.cc + src/sled/operations_chain.cc + src/sled/random.cc + src/sled/sigslot.cc + src/sled/status.cc + src/sled/system_time.cc + src/sled/time_utils.cc + src/sled/uri.cc) # set(BUILD_RTTR_DYNAMIC OFF) set(BUILD_UNIT_TESTS OFF) # set(BUILD_WITH_STATIC_RUNTIME_LIBS ON) set(BUILD_WITH_DOCUMENTATION OFF) # add_subdirectory(3party/rttr EXCLUDE_FROM_ALL) @@ -105,9 +105,9 @@ if(SLED_BUILD_BENCHMARK) add_executable( sled_benchmark - src/random_bench.cc src/strings/base64_bench.cc - src/system/fiber/fiber_bench.cc src/system/thread_pool_bench.cc - src/system_time_bench.cc) + src/sled/random_bench.cc src/sled/strings/base64_bench.cc + src/sled/system/fiber/fiber_bench.cc src/sled/system/thread_pool_bench.cc + src/sled/system_time_bench.cc) target_link_libraries(sled_benchmark PRIVATE sled benchmark::benchmark benchmark::benchmark_main) endif(SLED_BUILD_BENCHMARK) @@ -121,23 +121,23 @@ if(SLED_BUILD_TESTS) FetchContent_MakeAvailable(googletest) add_executable( sled_tests - # src/exec/just_test.cc - src/async/async_test.cc - src/any_test.cc - src/filesystem/path_test.cc - # src/futures/promise_test.cc - src/futures/detail/just_test.cc - src/log/fmt_test.cc - # src/profiling/profiling_test.cc - src/strings/base64_test.cc - src/synchronization/sequence_checker_test.cc - src/cleanup_test.cc - src/status_test.cc - src/status_or_test.cc - src/system/fiber/fiber_test.cc - src/system/thread_pool_test.cc - src/rx_test.cc - src/uri_test.cc) + # src/sled/exec/just_test.cc + src/sled/async/async_test.cc + src/sled/any_test.cc + src/sled/filesystem/path_test.cc + # src/sled/futures/promise_test.cc + src/sled/futures/detail/just_test.cc + src/sled/log/fmt_test.cc + # src/sled/profiling/profiling_test.cc + src/sled/strings/base64_test.cc + src/sled/synchronization/sequence_checker_test.cc + src/sled/cleanup_test.cc + src/sled/status_test.cc + src/sled/status_or_test.cc + src/sled/system/fiber/fiber_test.cc + src/sled/system/thread_pool_test.cc + src/sled/rx_test.cc + src/sled/uri_test.cc) if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") set(EXTRA_FLAGS -Wthread-safety -g -fsanitize=address -fno-omit-frame-pointer -fno-optimize-sibling-calls) @@ -160,5 +160,5 @@ if(SLED_BUILD_FUZZ) -fsanitize-coverage=trace-cmp) endmacro() - add_fuzz_test(base64_fuzz src/strings/base64_fuzz.cc) + add_fuzz_test(base64_fuzz src/sled/strings/base64_fuzz.cc) endif(SLED_BUILD_FUZZ) diff --git a/include/sled/any.h b/src/sled/any.h similarity index 100% rename from include/sled/any.h rename to src/sled/any.h diff --git a/src/any_test.cc b/src/sled/any_test.cc similarity index 100% rename from src/any_test.cc rename to src/sled/any_test.cc diff --git a/include/sled/apply.h b/src/sled/apply.h similarity index 100% rename from include/sled/apply.h rename to src/sled/apply.h diff --git a/src/async/async.cc b/src/sled/async/async.cc similarity index 100% rename from src/async/async.cc rename to src/sled/async/async.cc diff --git a/include/sled/async/async.h b/src/sled/async/async.h similarity index 100% rename from include/sled/async/async.h rename to src/sled/async/async.h diff --git a/src/async/async_test.cc b/src/sled/async/async_test.cc similarity index 100% rename from src/async/async_test.cc rename to src/sled/async/async_test.cc diff --git a/include/sled/buffer.h b/src/sled/buffer.h similarity index 100% rename from include/sled/buffer.h rename to src/sled/buffer.h diff --git a/include/sled/byte_order.h b/src/sled/byte_order.h similarity index 100% rename from include/sled/byte_order.h rename to src/sled/byte_order.h diff --git a/include/sled/cleanup.h b/src/sled/cleanup.h similarity index 100% rename from include/sled/cleanup.h rename to src/sled/cleanup.h diff --git a/src/cleanup_test.cc b/src/sled/cleanup_test.cc similarity index 100% rename from src/cleanup_test.cc rename to src/sled/cleanup_test.cc diff --git a/include/sled/exec/detail/invoke_result.h b/src/sled/exec/detail/invoke_result.h similarity index 100% rename from include/sled/exec/detail/invoke_result.h rename to src/sled/exec/detail/invoke_result.h diff --git a/src/exec/just_test.cc b/src/sled/exec/just_test.cc similarity index 100% rename from src/exec/just_test.cc rename to src/sled/exec/just_test.cc diff --git a/src/filesystem/path.cc b/src/sled/filesystem/path.cc similarity index 100% rename from src/filesystem/path.cc rename to src/sled/filesystem/path.cc diff --git a/include/sled/filesystem/path.h b/src/sled/filesystem/path.h similarity index 100% rename from include/sled/filesystem/path.h rename to src/sled/filesystem/path.h diff --git a/src/filesystem/path_test.cc b/src/sled/filesystem/path_test.cc similarity index 100% rename from src/filesystem/path_test.cc rename to src/sled/filesystem/path_test.cc diff --git a/include/sled/filesystem/temporary_file.h b/src/sled/filesystem/temporary_file.h similarity index 100% rename from include/sled/filesystem/temporary_file.h rename to src/sled/filesystem/temporary_file.h diff --git a/include/sled/futures/detail/delay.h b/src/sled/futures/detail/delay.h similarity index 100% rename from include/sled/futures/detail/delay.h rename to src/sled/futures/detail/delay.h diff --git a/include/sled/futures/detail/future.h b/src/sled/futures/detail/future.h similarity index 100% rename from include/sled/futures/detail/future.h rename to src/sled/futures/detail/future.h diff --git a/include/sled/futures/detail/just.h b/src/sled/futures/detail/just.h similarity index 100% rename from include/sled/futures/detail/just.h rename to src/sled/futures/detail/just.h diff --git a/src/futures/detail/just_test.cc b/src/sled/futures/detail/just_test.cc similarity index 100% rename from src/futures/detail/just_test.cc rename to src/sled/futures/detail/just_test.cc diff --git a/include/sled/futures/detail/on.h b/src/sled/futures/detail/on.h similarity index 100% rename from include/sled/futures/detail/on.h rename to src/sled/futures/detail/on.h diff --git a/include/sled/futures/detail/retry.h b/src/sled/futures/detail/retry.h similarity index 100% rename from include/sled/futures/detail/retry.h rename to src/sled/futures/detail/retry.h diff --git a/include/sled/futures/detail/then.h b/src/sled/futures/detail/then.h similarity index 100% rename from include/sled/futures/detail/then.h rename to src/sled/futures/detail/then.h diff --git a/include/sled/futures/detail/traits.h b/src/sled/futures/detail/traits.h similarity index 100% rename from include/sled/futures/detail/traits.h rename to src/sled/futures/detail/traits.h diff --git a/include/sled/futures/future.h b/src/sled/futures/future.h similarity index 100% rename from include/sled/futures/future.h rename to src/sled/futures/future.h diff --git a/include/sled/futures/promise.h b/src/sled/futures/promise.h similarity index 100% rename from include/sled/futures/promise.h rename to src/sled/futures/promise.h diff --git a/src/futures/promise_test.cc b/src/sled/futures/promise_test.cc similarity index 100% rename from src/futures/promise_test.cc rename to src/sled/futures/promise_test.cc diff --git a/include/sled/lang/attributes.h b/src/sled/lang/attributes.h similarity index 100% rename from include/sled/lang/attributes.h rename to src/sled/lang/attributes.h diff --git a/src/log/fmt_test.cc b/src/sled/log/fmt_test.cc similarity index 100% rename from src/log/fmt_test.cc rename to src/sled/log/fmt_test.cc diff --git a/src/log/log.cc b/src/sled/log/log.cc similarity index 100% rename from src/log/log.cc rename to src/sled/log/log.cc diff --git a/include/sled/log/log.h b/src/sled/log/log.h similarity index 100% rename from include/sled/log/log.h rename to src/sled/log/log.h diff --git a/include/sled/make_ref_counted.h b/src/sled/make_ref_counted.h similarity index 100% rename from include/sled/make_ref_counted.h rename to src/sled/make_ref_counted.h diff --git a/include/sled/make_unique.h b/src/sled/make_unique.h similarity index 100% rename from include/sled/make_unique.h rename to src/sled/make_unique.h diff --git a/src/network/async_resolver.cc b/src/sled/network/async_resolver.cc similarity index 100% rename from src/network/async_resolver.cc rename to src/sled/network/async_resolver.cc diff --git a/include/sled/network/async_resolver.h b/src/sled/network/async_resolver.h similarity index 100% rename from include/sled/network/async_resolver.h rename to src/sled/network/async_resolver.h diff --git a/include/sled/network/async_resolver_interface.h b/src/sled/network/async_resolver_interface.h similarity index 100% rename from include/sled/network/async_resolver_interface.h rename to src/sled/network/async_resolver_interface.h diff --git a/src/network/ip_address.cc b/src/sled/network/ip_address.cc similarity index 100% rename from src/network/ip_address.cc rename to src/sled/network/ip_address.cc diff --git a/include/sled/network/ip_address.h b/src/sled/network/ip_address.h similarity index 100% rename from include/sled/network/ip_address.h rename to src/sled/network/ip_address.h diff --git a/src/network/null_socket_server.cc b/src/sled/network/null_socket_server.cc similarity index 100% rename from src/network/null_socket_server.cc rename to src/sled/network/null_socket_server.cc diff --git a/include/sled/network/null_socket_server.h b/src/sled/network/null_socket_server.h similarity index 100% rename from include/sled/network/null_socket_server.h rename to src/sled/network/null_socket_server.h diff --git a/src/network/physical_socket_server.cc b/src/sled/network/physical_socket_server.cc similarity index 100% rename from src/network/physical_socket_server.cc rename to src/sled/network/physical_socket_server.cc diff --git a/include/sled/network/physical_socket_server.h b/src/sled/network/physical_socket_server.h similarity index 100% rename from include/sled/network/physical_socket_server.h rename to src/sled/network/physical_socket_server.h diff --git a/include/sled/network/socket.h b/src/sled/network/socket.h similarity index 100% rename from include/sled/network/socket.h rename to src/sled/network/socket.h diff --git a/src/network/socket_address.cc b/src/sled/network/socket_address.cc similarity index 100% rename from src/network/socket_address.cc rename to src/sled/network/socket_address.cc diff --git a/include/sled/network/socket_address.h b/src/sled/network/socket_address.h similarity index 100% rename from include/sled/network/socket_address.h rename to src/sled/network/socket_address.h diff --git a/include/sled/network/socket_factory.h b/src/sled/network/socket_factory.h similarity index 100% rename from include/sled/network/socket_factory.h rename to src/sled/network/socket_factory.h diff --git a/src/network/socket_server.cc b/src/sled/network/socket_server.cc similarity index 100% rename from src/network/socket_server.cc rename to src/sled/network/socket_server.cc diff --git a/include/sled/network/socket_server.h b/src/sled/network/socket_server.h similarity index 100% rename from include/sled/network/socket_server.h rename to src/sled/network/socket_server.h diff --git a/include/sled/numerics/divide_round.h b/src/sled/numerics/divide_round.h similarity index 100% rename from include/sled/numerics/divide_round.h rename to src/sled/numerics/divide_round.h diff --git a/include/sled/numerics/fixed_point_number.h b/src/sled/numerics/fixed_point_number.h similarity index 100% rename from include/sled/numerics/fixed_point_number.h rename to src/sled/numerics/fixed_point_number.h diff --git a/src/operations_chain.cc b/src/sled/operations_chain.cc similarity index 100% rename from src/operations_chain.cc rename to src/sled/operations_chain.cc diff --git a/include/sled/operations_chain.h b/src/sled/operations_chain.h similarity index 100% rename from include/sled/operations_chain.h rename to src/sled/operations_chain.h diff --git a/include/sled/optional.h b/src/sled/optional.h similarity index 100% rename from include/sled/optional.h rename to src/sled/optional.h diff --git a/src/profiling/profiling.cc b/src/sled/profiling/profiling.cc similarity index 100% rename from src/profiling/profiling.cc rename to src/sled/profiling/profiling.cc diff --git a/include/sled/profiling/profiling.h b/src/sled/profiling/profiling.h similarity index 100% rename from include/sled/profiling/profiling.h rename to src/sled/profiling/profiling.h diff --git a/src/profiling/profiling_test.cc b/src/sled/profiling/profiling_test.cc similarity index 100% rename from src/profiling/profiling_test.cc rename to src/sled/profiling/profiling_test.cc diff --git a/include/sled/queue/circle_queue.h b/src/sled/queue/circle_queue.h similarity index 100% rename from include/sled/queue/circle_queue.h rename to src/sled/queue/circle_queue.h diff --git a/src/random.cc b/src/sled/random.cc similarity index 100% rename from src/random.cc rename to src/sled/random.cc diff --git a/include/sled/random.h b/src/sled/random.h similarity index 100% rename from include/sled/random.h rename to src/sled/random.h diff --git a/src/random_bench.cc b/src/sled/random_bench.cc similarity index 100% rename from src/random_bench.cc rename to src/sled/random_bench.cc diff --git a/include/sled/ref_count.h b/src/sled/ref_count.h similarity index 100% rename from include/sled/ref_count.h rename to src/sled/ref_count.h diff --git a/include/sled/ref_counted_base.h b/src/sled/ref_counted_base.h similarity index 100% rename from include/sled/ref_counted_base.h rename to src/sled/ref_counted_base.h diff --git a/include/sled/ref_counted_object.h b/src/sled/ref_counted_object.h similarity index 100% rename from include/sled/ref_counted_object.h rename to src/sled/ref_counted_object.h diff --git a/include/sled/ref_counter.h b/src/sled/ref_counter.h similarity index 100% rename from include/sled/ref_counter.h rename to src/sled/ref_counter.h diff --git a/include/sled/reflect/reflect.h b/src/sled/reflect/reflect.h similarity index 100% rename from include/sled/reflect/reflect.h rename to src/sled/reflect/reflect.h diff --git a/include/sled/rx.h b/src/sled/rx.h similarity index 100% rename from include/sled/rx.h rename to src/sled/rx.h diff --git a/src/rx_test.cc b/src/sled/rx_test.cc similarity index 100% rename from src/rx_test.cc rename to src/sled/rx_test.cc diff --git a/src/sanitizer_test.cc b/src/sled/sanitizer_test.cc similarity index 100% rename from src/sanitizer_test.cc rename to src/sled/sanitizer_test.cc diff --git a/include/sled/scoped_refptr.h b/src/sled/scoped_refptr.h similarity index 100% rename from include/sled/scoped_refptr.h rename to src/sled/scoped_refptr.h diff --git a/src/sigslot.cc b/src/sled/sigslot.cc similarity index 100% rename from src/sigslot.cc rename to src/sled/sigslot.cc diff --git a/include/sled/sigslot.h b/src/sled/sigslot.h similarity index 100% rename from include/sled/sigslot.h rename to src/sled/sigslot.h diff --git a/include/sled/sled.h b/src/sled/sled.h similarity index 100% rename from include/sled/sled.h rename to src/sled/sled.h diff --git a/src/status.cc b/src/sled/status.cc similarity index 100% rename from src/status.cc rename to src/sled/status.cc diff --git a/include/sled/status.h b/src/sled/status.h similarity index 100% rename from include/sled/status.h rename to src/sled/status.h diff --git a/include/sled/status_or.h b/src/sled/status_or.h similarity index 100% rename from include/sled/status_or.h rename to src/sled/status_or.h diff --git a/src/status_or_test.cc b/src/sled/status_or_test.cc similarity index 100% rename from src/status_or_test.cc rename to src/sled/status_or_test.cc diff --git a/src/status_test.cc b/src/sled/status_test.cc similarity index 100% rename from src/status_test.cc rename to src/sled/status_test.cc diff --git a/src/strings/base64.cc b/src/sled/strings/base64.cc similarity index 100% rename from src/strings/base64.cc rename to src/sled/strings/base64.cc diff --git a/include/sled/strings/base64.h b/src/sled/strings/base64.h similarity index 100% rename from include/sled/strings/base64.h rename to src/sled/strings/base64.h diff --git a/src/strings/base64_bench.cc b/src/sled/strings/base64_bench.cc similarity index 100% rename from src/strings/base64_bench.cc rename to src/sled/strings/base64_bench.cc diff --git a/src/strings/base64_fuzz.cc b/src/sled/strings/base64_fuzz.cc similarity index 100% rename from src/strings/base64_fuzz.cc rename to src/sled/strings/base64_fuzz.cc diff --git a/src/strings/base64_test.cc b/src/sled/strings/base64_test.cc similarity index 100% rename from src/strings/base64_test.cc rename to src/sled/strings/base64_test.cc diff --git a/src/strings/utils.cc b/src/sled/strings/utils.cc similarity index 100% rename from src/strings/utils.cc rename to src/sled/strings/utils.cc diff --git a/include/sled/strings/utils.h b/src/sled/strings/utils.h similarity index 100% rename from include/sled/strings/utils.h rename to src/sled/strings/utils.h diff --git a/include/sled/synchronization/call_once.h b/src/sled/synchronization/call_once.h similarity index 100% rename from include/sled/synchronization/call_once.h rename to src/sled/synchronization/call_once.h diff --git a/src/synchronization/event.cc b/src/sled/synchronization/event.cc similarity index 100% rename from src/synchronization/event.cc rename to src/sled/synchronization/event.cc diff --git a/include/sled/synchronization/event.h b/src/sled/synchronization/event.h similarity index 100% rename from include/sled/synchronization/event.h rename to src/sled/synchronization/event.h diff --git a/src/synchronization/mutex.cc b/src/sled/synchronization/mutex.cc similarity index 100% rename from src/synchronization/mutex.cc rename to src/sled/synchronization/mutex.cc diff --git a/include/sled/synchronization/mutex.h b/src/sled/synchronization/mutex.h similarity index 100% rename from include/sled/synchronization/mutex.h rename to src/sled/synchronization/mutex.h diff --git a/include/sled/synchronization/one_time_event.h b/src/sled/synchronization/one_time_event.h similarity index 100% rename from include/sled/synchronization/one_time_event.h rename to src/sled/synchronization/one_time_event.h diff --git a/src/synchronization/sequence_checker.cc b/src/sled/synchronization/sequence_checker.cc similarity index 100% rename from src/synchronization/sequence_checker.cc rename to src/sled/synchronization/sequence_checker.cc diff --git a/include/sled/synchronization/sequence_checker.h b/src/sled/synchronization/sequence_checker.h similarity index 100% rename from include/sled/synchronization/sequence_checker.h rename to src/sled/synchronization/sequence_checker.h diff --git a/src/synchronization/sequence_checker_test.cc b/src/sled/synchronization/sequence_checker_test.cc similarity index 100% rename from src/synchronization/sequence_checker_test.cc rename to src/sled/synchronization/sequence_checker_test.cc diff --git a/src/synchronization/thread_local.cc b/src/sled/synchronization/thread_local.cc similarity index 100% rename from src/synchronization/thread_local.cc rename to src/sled/synchronization/thread_local.cc diff --git a/include/sled/synchronization/thread_local.h b/src/sled/synchronization/thread_local.h similarity index 100% rename from include/sled/synchronization/thread_local.h rename to src/sled/synchronization/thread_local.h diff --git a/src/system/fiber/fiber_bench.cc b/src/sled/system/fiber/fiber_bench.cc similarity index 100% rename from src/system/fiber/fiber_bench.cc rename to src/sled/system/fiber/fiber_bench.cc diff --git a/src/system/fiber/fiber_test.cc b/src/sled/system/fiber/fiber_test.cc similarity index 100% rename from src/system/fiber/fiber_test.cc rename to src/sled/system/fiber/fiber_test.cc diff --git a/include/sled/system/fiber/scheduler.h b/src/sled/system/fiber/scheduler.h similarity index 100% rename from include/sled/system/fiber/scheduler.h rename to src/sled/system/fiber/scheduler.h diff --git a/include/sled/system/fiber/wait_group.h b/src/sled/system/fiber/wait_group.h similarity index 100% rename from include/sled/system/fiber/wait_group.h rename to src/sled/system/fiber/wait_group.h diff --git a/src/system/location.cc b/src/sled/system/location.cc similarity index 100% rename from src/system/location.cc rename to src/sled/system/location.cc diff --git a/include/sled/system/location.h b/src/sled/system/location.h similarity index 100% rename from include/sled/system/location.h rename to src/sled/system/location.h diff --git a/src/system/pid.cc b/src/sled/system/pid.cc similarity index 100% rename from src/system/pid.cc rename to src/sled/system/pid.cc diff --git a/include/sled/system/pid.h b/src/sled/system/pid.h similarity index 100% rename from include/sled/system/pid.h rename to src/sled/system/pid.h diff --git a/src/system/thread.cc b/src/sled/system/thread.cc similarity index 100% rename from src/system/thread.cc rename to src/sled/system/thread.cc diff --git a/include/sled/system/thread.h b/src/sled/system/thread.h similarity index 100% rename from include/sled/system/thread.h rename to src/sled/system/thread.h diff --git a/src/system/thread_pool.cc b/src/sled/system/thread_pool.cc similarity index 100% rename from src/system/thread_pool.cc rename to src/sled/system/thread_pool.cc diff --git a/include/sled/system/thread_pool.h b/src/sled/system/thread_pool.h similarity index 100% rename from include/sled/system/thread_pool.h rename to src/sled/system/thread_pool.h diff --git a/src/system/thread_pool_bench.cc b/src/sled/system/thread_pool_bench.cc similarity index 100% rename from src/system/thread_pool_bench.cc rename to src/sled/system/thread_pool_bench.cc diff --git a/src/system/thread_pool_test.cc b/src/sled/system/thread_pool_test.cc similarity index 100% rename from src/system/thread_pool_test.cc rename to src/sled/system/thread_pool_test.cc diff --git a/src/system_time.cc b/src/sled/system_time.cc similarity index 100% rename from src/system_time.cc rename to src/sled/system_time.cc diff --git a/include/sled/system_time.h b/src/sled/system_time.h similarity index 100% rename from include/sled/system_time.h rename to src/sled/system_time.h diff --git a/src/system_time_bench.cc b/src/sled/system_time_bench.cc similarity index 100% rename from src/system_time_bench.cc rename to src/sled/system_time_bench.cc diff --git a/src/task_queue/pending_task_safety_flag.cc b/src/sled/task_queue/pending_task_safety_flag.cc similarity index 100% rename from src/task_queue/pending_task_safety_flag.cc rename to src/sled/task_queue/pending_task_safety_flag.cc diff --git a/include/sled/task_queue/pending_task_safety_flag.h b/src/sled/task_queue/pending_task_safety_flag.h similarity index 100% rename from include/sled/task_queue/pending_task_safety_flag.h rename to src/sled/task_queue/pending_task_safety_flag.h diff --git a/src/task_queue/task_queue_base.cc b/src/sled/task_queue/task_queue_base.cc similarity index 100% rename from src/task_queue/task_queue_base.cc rename to src/sled/task_queue/task_queue_base.cc diff --git a/include/sled/task_queue/task_queue_base.h b/src/sled/task_queue/task_queue_base.h similarity index 100% rename from include/sled/task_queue/task_queue_base.h rename to src/sled/task_queue/task_queue_base.h diff --git a/src/time_utils.cc b/src/sled/time_utils.cc similarity index 100% rename from src/time_utils.cc rename to src/sled/time_utils.cc diff --git a/include/sled/time_utils.h b/src/sled/time_utils.h similarity index 100% rename from include/sled/time_utils.h rename to src/sled/time_utils.h diff --git a/src/timer/task_queue_timeout.cc b/src/sled/timer/task_queue_timeout.cc similarity index 100% rename from src/timer/task_queue_timeout.cc rename to src/sled/timer/task_queue_timeout.cc diff --git a/include/sled/timer/task_queue_timeout.h b/src/sled/timer/task_queue_timeout.h similarity index 100% rename from include/sled/timer/task_queue_timeout.h rename to src/sled/timer/task_queue_timeout.h diff --git a/include/sled/timer/timeout.h b/src/sled/timer/timeout.h similarity index 100% rename from include/sled/timer/timeout.h rename to src/sled/timer/timeout.h diff --git a/src/timer/timer.cc b/src/sled/timer/timer.cc similarity index 100% rename from src/timer/timer.cc rename to src/sled/timer/timer.cc diff --git a/include/sled/timer/timer.h b/src/sled/timer/timer.h similarity index 100% rename from include/sled/timer/timer.h rename to src/sled/timer/timer.h diff --git a/src/units/time_delta.cc b/src/sled/units/time_delta.cc similarity index 100% rename from src/units/time_delta.cc rename to src/sled/units/time_delta.cc diff --git a/include/sled/units/time_delta.h b/src/sled/units/time_delta.h similarity index 100% rename from include/sled/units/time_delta.h rename to src/sled/units/time_delta.h diff --git a/src/units/timestamp.cc b/src/sled/units/timestamp.cc similarity index 100% rename from src/units/timestamp.cc rename to src/sled/units/timestamp.cc diff --git a/include/sled/units/timestamp.h b/src/sled/units/timestamp.h similarity index 100% rename from include/sled/units/timestamp.h rename to src/sled/units/timestamp.h diff --git a/include/sled/units/unit_base.h b/src/sled/units/unit_base.h similarity index 100% rename from include/sled/units/unit_base.h rename to src/sled/units/unit_base.h diff --git a/src/uri.cc b/src/sled/uri.cc similarity index 100% rename from src/uri.cc rename to src/sled/uri.cc diff --git a/include/sled/uri.h b/src/sled/uri.h similarity index 100% rename from include/sled/uri.h rename to src/sled/uri.h diff --git a/src/uri_test.cc b/src/sled/uri_test.cc similarity index 100% rename from src/uri_test.cc rename to src/sled/uri_test.cc diff --git a/include/sled/utility/move_on_copy.h b/src/sled/utility/move_on_copy.h similarity index 100% rename from include/sled/utility/move_on_copy.h rename to src/sled/utility/move_on_copy.h diff --git a/include/sled/variant.h b/src/sled/variant.h similarity index 100% rename from include/sled/variant.h rename to src/sled/variant.h