Skip to content

Commit

Permalink
Use sisl v12
Browse files Browse the repository at this point in the history
  • Loading branch information
hkadayam committed Mar 24, 2024
1 parent 972239e commit fca8ec7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class IOMgrConan(ConanFile):
name = "iomgr"
version = "11.1.1"
version = "11.2.1"

homepage = "https://github.com/eBay/IOManager"
description = "Asynchronous event manager"
Expand Down Expand Up @@ -54,7 +54,7 @@ def build_requirements(self):
self.build_requires("cpr/1.10.4")

def requirements(self):
self.requires("sisl/[~=11, include_prerelease=True]@oss/master")
self.requires("sisl/[~=12, include_prerelease=True]@oss/master")
if self.options.grpc_support:
self.requires("grpc/[>=1.50]")
self.requires("grpc_internal/1.48.0")
Expand Down
10 changes: 8 additions & 2 deletions src/include/iomgr/iomgr_flip.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,14 @@ class FlipTimerIOMgr : public flip::FlipTimerBase {
};

std::unique_lock< std::mutex > lk(m_mutex);
*thdl = IOManager::instance().schedule_thread_timer(delay_us.total_nanoseconds(), false /* recurring */,
nullptr /* cookie */, cb);
if (IOManager::instance().am_i_io_reactor()) {
*thdl = IOManager::instance().schedule_thread_timer(delay_us.total_nanoseconds(), false /* recurring */,
nullptr /* cookie */, cb);
} else {
*thdl =
IOManager::instance().schedule_global_timer(delay_us.total_nanoseconds(), false /* recurring */,
nullptr /* cookie */, iomgr::reactor_regex::all_worker, cb);
}
m_timer_instances.insert(std::make_pair(timer_name, thdl));
}

Expand Down

0 comments on commit fca8ec7

Please sign in to comment.