Skip to content

Commit

Permalink
Removed TCondVar and TMutex
Browse files Browse the repository at this point in the history
  • Loading branch information
Gazizonoki committed Mar 7, 2024
1 parent 350163f commit 2c50412
Show file tree
Hide file tree
Showing 17 changed files with 35 additions and 787 deletions.
1 change: 0 additions & 1 deletion library/cpp/coroutine/engine/sockpool.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

#include <util/network/address.h>
#include <util/network/socket.h>
#include <util/system/mutex.h>

#include <mutex>

Expand Down
1 change: 0 additions & 1 deletion library/cpp/http/fetch/sockhandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <util/network/address.h>
#include <util/network/ip.h>
#include <util/network/socket.h>
#include <util/system/mutex.h>
#include <util/system/yassert.h>

#include <cerrno>
Expand Down
10 changes: 1 addition & 9 deletions util/CMakeLists.darwin-arm64.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ target_joined_source(yutil
${CMAKE_SOURCE_DIR}/util/generic/iterator_range.cpp
${CMAKE_SOURCE_DIR}/util/generic/lazy_value.cpp
${CMAKE_SOURCE_DIR}/util/generic/list.cpp
${CMAKE_SOURCE_DIR}/util/generic/map.cpp
${CMAKE_SOURCE_DIR}/util/generic/mapfindptr.cpp
${CMAKE_SOURCE_DIR}/util/generic/maybe.cpp
${CMAKE_SOURCE_DIR}/util/generic/mem_copy.cpp
${CMAKE_SOURCE_DIR}/util/generic/noncopyable.cpp
Expand All @@ -107,15 +105,12 @@ target_joined_source(yutil
${CMAKE_SOURCE_DIR}/util/generic/size_literals.cpp
${CMAKE_SOURCE_DIR}/util/generic/stack.cpp
${CMAKE_SOURCE_DIR}/util/generic/store_policy.cpp
${CMAKE_SOURCE_DIR}/util/generic/strbuf.cpp
${CMAKE_SOURCE_DIR}/util/generic/strfcpy.cpp
${CMAKE_SOURCE_DIR}/util/generic/string.cpp
${CMAKE_SOURCE_DIR}/util/generic/typelist.cpp
${CMAKE_SOURCE_DIR}/util/generic/typetraits.cpp
${CMAKE_SOURCE_DIR}/util/generic/utility.cpp
${CMAKE_SOURCE_DIR}/util/generic/va_args.cpp
${CMAKE_SOURCE_DIR}/util/generic/variant.cpp
${CMAKE_SOURCE_DIR}/util/generic/vector.cpp
${CMAKE_SOURCE_DIR}/util/generic/xrange.cpp
${CMAKE_SOURCE_DIR}/util/generic/yexception.cpp
${CMAKE_SOURCE_DIR}/util/generic/ylimits.cpp
Expand Down Expand Up @@ -217,7 +212,6 @@ target_joined_source(yutil
${CMAKE_SOURCE_DIR}/util/system/atexit.cpp
${CMAKE_SOURCE_DIR}/util/system/backtrace.cpp
${CMAKE_SOURCE_DIR}/util/system/compat.cpp
${CMAKE_SOURCE_DIR}/util/system/condvar.cpp
${CMAKE_SOURCE_DIR}/util/system/context.cpp
${CMAKE_SOURCE_DIR}/util/system/daemon.cpp
${CMAKE_SOURCE_DIR}/util/system/datetime.cpp
Expand Down Expand Up @@ -255,7 +249,7 @@ target_joined_source(yutil
${CMAKE_SOURCE_DIR}/util/system/mincore.cpp
${CMAKE_SOURCE_DIR}/util/system/mktemp.cpp
${CMAKE_SOURCE_DIR}/util/system/mlock.cpp
${CMAKE_SOURCE_DIR}/util/system/mutex.cpp
${CMAKE_SOURCE_DIR}/util/system/fake_mutex.cpp
${CMAKE_SOURCE_DIR}/util/system/nice.cpp
${CMAKE_SOURCE_DIR}/util/system/pipe.cpp
${CMAKE_SOURCE_DIR}/util/system/platform.cpp
Expand Down Expand Up @@ -288,8 +282,6 @@ target_joined_source(yutil
all_thread.cpp
${CMAKE_SOURCE_DIR}/util/thread/factory.cpp
${CMAKE_SOURCE_DIR}/util/thread/fwd.cpp
${CMAKE_SOURCE_DIR}/util/thread/lfqueue.cpp
${CMAKE_SOURCE_DIR}/util/thread/lfstack.cpp
${CMAKE_SOURCE_DIR}/util/thread/pool.cpp
${CMAKE_SOURCE_DIR}/util/thread/singleton.cpp
)
Expand Down
10 changes: 1 addition & 9 deletions util/CMakeLists.darwin-x86_64.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ target_joined_source(yutil
${CMAKE_SOURCE_DIR}/util/generic/iterator.cpp
${CMAKE_SOURCE_DIR}/util/generic/iterator_range.cpp
${CMAKE_SOURCE_DIR}/util/generic/lazy_value.cpp
${CMAKE_SOURCE_DIR}/util/generic/list.cpp
${CMAKE_SOURCE_DIR}/util/generic/map.cpp
${CMAKE_SOURCE_DIR}/util/generic/mapfindptr.cpp
${CMAKE_SOURCE_DIR}/util/generic/maybe.cpp
${CMAKE_SOURCE_DIR}/util/generic/mem_copy.cpp
Expand All @@ -106,15 +104,12 @@ target_joined_source(yutil
${CMAKE_SOURCE_DIR}/util/generic/size_literals.cpp
${CMAKE_SOURCE_DIR}/util/generic/stack.cpp
${CMAKE_SOURCE_DIR}/util/generic/store_policy.cpp
${CMAKE_SOURCE_DIR}/util/generic/strbuf.cpp
${CMAKE_SOURCE_DIR}/util/generic/strfcpy.cpp
${CMAKE_SOURCE_DIR}/util/generic/string.cpp
${CMAKE_SOURCE_DIR}/util/generic/typelist.cpp
${CMAKE_SOURCE_DIR}/util/generic/typetraits.cpp
${CMAKE_SOURCE_DIR}/util/generic/utility.cpp
${CMAKE_SOURCE_DIR}/util/generic/va_args.cpp
${CMAKE_SOURCE_DIR}/util/generic/variant.cpp
${CMAKE_SOURCE_DIR}/util/generic/vector.cpp
${CMAKE_SOURCE_DIR}/util/generic/xrange.cpp
${CMAKE_SOURCE_DIR}/util/generic/yexception.cpp
${CMAKE_SOURCE_DIR}/util/generic/ylimits.cpp
Expand Down Expand Up @@ -216,7 +211,6 @@ target_joined_source(yutil
${CMAKE_SOURCE_DIR}/util/system/atexit.cpp
${CMAKE_SOURCE_DIR}/util/system/backtrace.cpp
${CMAKE_SOURCE_DIR}/util/system/compat.cpp
${CMAKE_SOURCE_DIR}/util/system/condvar.cpp
${CMAKE_SOURCE_DIR}/util/system/context.cpp
${CMAKE_SOURCE_DIR}/util/system/daemon.cpp
${CMAKE_SOURCE_DIR}/util/system/datetime.cpp
Expand Down Expand Up @@ -254,7 +248,7 @@ target_joined_source(yutil
${CMAKE_SOURCE_DIR}/util/system/mincore.cpp
${CMAKE_SOURCE_DIR}/util/system/mktemp.cpp
${CMAKE_SOURCE_DIR}/util/system/mlock.cpp
${CMAKE_SOURCE_DIR}/util/system/mutex.cpp
${CMAKE_SOURCE_DIR}/util/system/fake_mutex.cpp
${CMAKE_SOURCE_DIR}/util/system/nice.cpp
${CMAKE_SOURCE_DIR}/util/system/pipe.cpp
${CMAKE_SOURCE_DIR}/util/system/platform.cpp
Expand Down Expand Up @@ -287,8 +281,6 @@ target_joined_source(yutil
all_thread.cpp
${CMAKE_SOURCE_DIR}/util/thread/factory.cpp
${CMAKE_SOURCE_DIR}/util/thread/fwd.cpp
${CMAKE_SOURCE_DIR}/util/thread/lfqueue.cpp
${CMAKE_SOURCE_DIR}/util/thread/lfstack.cpp
${CMAKE_SOURCE_DIR}/util/thread/pool.cpp
${CMAKE_SOURCE_DIR}/util/thread/singleton.cpp
)
Expand Down
10 changes: 1 addition & 9 deletions util/CMakeLists.linux-aarch64.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ target_joined_source(yutil
${CMAKE_SOURCE_DIR}/util/generic/iterator.cpp
${CMAKE_SOURCE_DIR}/util/generic/iterator_range.cpp
${CMAKE_SOURCE_DIR}/util/generic/lazy_value.cpp
${CMAKE_SOURCE_DIR}/util/generic/list.cpp
${CMAKE_SOURCE_DIR}/util/generic/map.cpp
${CMAKE_SOURCE_DIR}/util/generic/mapfindptr.cpp
${CMAKE_SOURCE_DIR}/util/generic/maybe.cpp
${CMAKE_SOURCE_DIR}/util/generic/mem_copy.cpp
Expand All @@ -110,15 +108,12 @@ target_joined_source(yutil
${CMAKE_SOURCE_DIR}/util/generic/size_literals.cpp
${CMAKE_SOURCE_DIR}/util/generic/stack.cpp
${CMAKE_SOURCE_DIR}/util/generic/store_policy.cpp
${CMAKE_SOURCE_DIR}/util/generic/strbuf.cpp
${CMAKE_SOURCE_DIR}/util/generic/strfcpy.cpp
${CMAKE_SOURCE_DIR}/util/generic/string.cpp
${CMAKE_SOURCE_DIR}/util/generic/typelist.cpp
${CMAKE_SOURCE_DIR}/util/generic/typetraits.cpp
${CMAKE_SOURCE_DIR}/util/generic/utility.cpp
${CMAKE_SOURCE_DIR}/util/generic/va_args.cpp
${CMAKE_SOURCE_DIR}/util/generic/variant.cpp
${CMAKE_SOURCE_DIR}/util/generic/vector.cpp
${CMAKE_SOURCE_DIR}/util/generic/xrange.cpp
${CMAKE_SOURCE_DIR}/util/generic/yexception.cpp
${CMAKE_SOURCE_DIR}/util/generic/ylimits.cpp
Expand Down Expand Up @@ -220,7 +215,6 @@ target_joined_source(yutil
${CMAKE_SOURCE_DIR}/util/system/atexit.cpp
${CMAKE_SOURCE_DIR}/util/system/backtrace.cpp
${CMAKE_SOURCE_DIR}/util/system/compat.cpp
${CMAKE_SOURCE_DIR}/util/system/condvar.cpp
${CMAKE_SOURCE_DIR}/util/system/context.cpp
${CMAKE_SOURCE_DIR}/util/system/daemon.cpp
${CMAKE_SOURCE_DIR}/util/system/datetime.cpp
Expand Down Expand Up @@ -258,7 +252,7 @@ target_joined_source(yutil
${CMAKE_SOURCE_DIR}/util/system/mincore.cpp
${CMAKE_SOURCE_DIR}/util/system/mktemp.cpp
${CMAKE_SOURCE_DIR}/util/system/mlock.cpp
${CMAKE_SOURCE_DIR}/util/system/mutex.cpp
${CMAKE_SOURCE_DIR}/util/system/fake_mutex.cpp
${CMAKE_SOURCE_DIR}/util/system/nice.cpp
${CMAKE_SOURCE_DIR}/util/system/pipe.cpp
${CMAKE_SOURCE_DIR}/util/system/platform.cpp
Expand Down Expand Up @@ -291,8 +285,6 @@ target_joined_source(yutil
all_thread.cpp
${CMAKE_SOURCE_DIR}/util/thread/factory.cpp
${CMAKE_SOURCE_DIR}/util/thread/fwd.cpp
${CMAKE_SOURCE_DIR}/util/thread/lfqueue.cpp
${CMAKE_SOURCE_DIR}/util/thread/lfstack.cpp
${CMAKE_SOURCE_DIR}/util/thread/pool.cpp
${CMAKE_SOURCE_DIR}/util/thread/singleton.cpp
)
Expand Down
3 changes: 1 addition & 2 deletions util/CMakeLists.linux-x86_64.txt
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ target_joined_source(yutil
${CMAKE_SOURCE_DIR}/util/system/atexit.cpp
${CMAKE_SOURCE_DIR}/util/system/backtrace.cpp
${CMAKE_SOURCE_DIR}/util/system/compat.cpp
${CMAKE_SOURCE_DIR}/util/system/condvar.cpp
${CMAKE_SOURCE_DIR}/util/system/context.cpp
${CMAKE_SOURCE_DIR}/util/system/daemon.cpp
${CMAKE_SOURCE_DIR}/util/system/datetime.cpp
Expand Down Expand Up @@ -253,7 +252,7 @@ target_joined_source(yutil
${CMAKE_SOURCE_DIR}/util/system/mincore.cpp
${CMAKE_SOURCE_DIR}/util/system/mktemp.cpp
${CMAKE_SOURCE_DIR}/util/system/mlock.cpp
${CMAKE_SOURCE_DIR}/util/system/mutex.cpp
${CMAKE_SOURCE_DIR}/util/system/fake_mutex.cpp
${CMAKE_SOURCE_DIR}/util/system/nice.cpp
${CMAKE_SOURCE_DIR}/util/system/pipe.cpp
${CMAKE_SOURCE_DIR}/util/system/platform.cpp
Expand Down
10 changes: 1 addition & 9 deletions util/CMakeLists.windows-x86_64.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@ target_joined_source(yutil
${CMAKE_SOURCE_DIR}/util/generic/iterator.cpp
${CMAKE_SOURCE_DIR}/util/generic/iterator_range.cpp
${CMAKE_SOURCE_DIR}/util/generic/lazy_value.cpp
${CMAKE_SOURCE_DIR}/util/generic/list.cpp
${CMAKE_SOURCE_DIR}/util/generic/map.cpp
${CMAKE_SOURCE_DIR}/util/generic/mapfindptr.cpp
${CMAKE_SOURCE_DIR}/util/generic/maybe.cpp
${CMAKE_SOURCE_DIR}/util/generic/mem_copy.cpp
Expand All @@ -113,15 +111,12 @@ target_joined_source(yutil
${CMAKE_SOURCE_DIR}/util/generic/size_literals.cpp
${CMAKE_SOURCE_DIR}/util/generic/stack.cpp
${CMAKE_SOURCE_DIR}/util/generic/store_policy.cpp
${CMAKE_SOURCE_DIR}/util/generic/strbuf.cpp
${CMAKE_SOURCE_DIR}/util/generic/strfcpy.cpp
${CMAKE_SOURCE_DIR}/util/generic/string.cpp
${CMAKE_SOURCE_DIR}/util/generic/typelist.cpp
${CMAKE_SOURCE_DIR}/util/generic/typetraits.cpp
${CMAKE_SOURCE_DIR}/util/generic/utility.cpp
${CMAKE_SOURCE_DIR}/util/generic/va_args.cpp
${CMAKE_SOURCE_DIR}/util/generic/variant.cpp
${CMAKE_SOURCE_DIR}/util/generic/vector.cpp
${CMAKE_SOURCE_DIR}/util/generic/xrange.cpp
${CMAKE_SOURCE_DIR}/util/generic/yexception.cpp
${CMAKE_SOURCE_DIR}/util/generic/ylimits.cpp
Expand Down Expand Up @@ -223,7 +218,6 @@ target_joined_source(yutil
${CMAKE_SOURCE_DIR}/util/system/atexit.cpp
${CMAKE_SOURCE_DIR}/util/system/backtrace.cpp
${CMAKE_SOURCE_DIR}/util/system/compat.cpp
${CMAKE_SOURCE_DIR}/util/system/condvar.cpp
${CMAKE_SOURCE_DIR}/util/system/context.cpp
${CMAKE_SOURCE_DIR}/util/system/daemon.cpp
${CMAKE_SOURCE_DIR}/util/system/datetime.cpp
Expand Down Expand Up @@ -261,7 +255,7 @@ target_joined_source(yutil
${CMAKE_SOURCE_DIR}/util/system/mincore.cpp
${CMAKE_SOURCE_DIR}/util/system/mktemp.cpp
${CMAKE_SOURCE_DIR}/util/system/mlock.cpp
${CMAKE_SOURCE_DIR}/util/system/mutex.cpp
${CMAKE_SOURCE_DIR}/util/system/fake_mutex.cpp
${CMAKE_SOURCE_DIR}/util/system/nice.cpp
${CMAKE_SOURCE_DIR}/util/system/pipe.cpp
${CMAKE_SOURCE_DIR}/util/system/platform.cpp
Expand Down Expand Up @@ -294,8 +288,6 @@ target_joined_source(yutil
all_thread.cpp
${CMAKE_SOURCE_DIR}/util/thread/factory.cpp
${CMAKE_SOURCE_DIR}/util/thread/fwd.cpp
${CMAKE_SOURCE_DIR}/util/thread/lfqueue.cpp
${CMAKE_SOURCE_DIR}/util/thread/lfstack.cpp
${CMAKE_SOURCE_DIR}/util/thread/pool.cpp
${CMAKE_SOURCE_DIR}/util/thread/singleton.cpp
)
Expand Down
2 changes: 1 addition & 1 deletion util/network/pollerimpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "socket.h"

#include <util/system/error.h>
#include <util/system/mutex.h>
#include <util/system/fake_mutex.h>
#include <util/system/defaults.h>
#include <util/generic/ylimits.h>
#include <util/generic/utility.h>
Expand Down
145 changes: 0 additions & 145 deletions util/system/condvar.cpp

This file was deleted.

Loading

0 comments on commit 2c50412

Please sign in to comment.