diff options
| author | AYMEN <53928879+AYMENJD@users.noreply.github.com> | 2024-12-05 15:41:30 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-05 15:41:30 +0300 |
| commit | d5445065e639fa673b86933062650d671eb419a2 (patch) | |
| tree | d7e3ad2e37115094f738b9d6418d72f3416848af /tdutils | |
| parent | d0f077f3c0dfdadf36ef4c273368ae18bb9e8ed2 (diff) | |
Minor improvements. (#3169)
Diffstat (limited to 'tdutils')
| -rw-r--r-- | tdutils/td/utils/HazardPointers.h | 2 | ||||
| -rw-r--r-- | tdutils/td/utils/MpmcWaiter.h | 2 | ||||
| -rw-r--r-- | tdutils/td/utils/port/thread_local.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tdutils/td/utils/HazardPointers.h b/tdutils/td/utils/HazardPointers.h index 79715caa4..e38e48bd5 100644 --- a/tdutils/td/utils/HazardPointers.h +++ b/tdutils/td/utils/HazardPointers.h @@ -78,7 +78,7 @@ class HazardPointers { } } - // old inteface + // old interface T *protect(size_t thread_id, size_t pos, std::atomic<T *> &ptr) { return do_protect(get_hazard_ptr(thread_id, pos), ptr); } diff --git a/tdutils/td/utils/MpmcWaiter.h b/tdutils/td/utils/MpmcWaiter.h index 2ec315cff..ee1d8d064 100644 --- a/tdutils/td/utils/MpmcWaiter.h +++ b/tdutils/td/utils/MpmcWaiter.h @@ -281,7 +281,7 @@ class MpmcSleepyWaiter { auto view = StateView(state_.load()); //LOG(ERROR) << view.parked_count; if (view.searching_count > 0 || view.parked_count == 0) { - VLOG(waiter) << "Ingore notify: " << view.searching_count << ' ' << view.parked_count; + VLOG(waiter) << "Ignore notify: " << view.searching_count << ' ' << view.parked_count; return; } diff --git a/tdutils/td/utils/port/thread_local.cpp b/tdutils/td/utils/port/thread_local.cpp index c5d8ee9ee..1199b835e 100644 --- a/tdutils/td/utils/port/thread_local.cpp +++ b/tdutils/td/utils/port/thread_local.cpp @@ -23,7 +23,7 @@ void add_thread_local_destructor(unique_ptr<Destructor> destructor) { } // namespace detail void clear_thread_locals() { - // ensure that no destructors were added during destructors invokation + // ensure that no destructors were added during destructors invocation auto to_delete = detail::thread_local_destructors; detail::thread_local_destructors = nullptr; delete to_delete; |
