facebook / wangle

Wangle is a framework providing a set of common client/server abstractions for building services in a consistent, modular, and composable way.
Apache License 2.0
3.04k stars 536 forks source link

Example usage for IOThreadpool? #111

Closed vedhasd91 closed 1 year ago

vedhasd91 commented 6 years ago

I am currently using IOThreadpool as a member of a class, and periodically add IO task to the queue, it works fine when it is periodic with certain seconds. When I add aperiodic tasks, the IOThreadPool madvises the stack, but I end getting this:

detail/MemoryIdler.cpp:159: static void folly::detail::MemoryIdler::unmapUnusedStack(size_t): Assertion(__errno_location ()) == 11 || (__errno_location ()) == 12' failed.`

somewhere in main: A a() ... a.AddTask()

class A{ ... private: wangle::IOThreadPoolExecutor thread_pool_; }

A() : ..., : thread_pool_(1)

yfeldblum commented 1 year ago

Closing this issue because it is too old.