]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
test/crimson: minimize the lexical scope of thread pool
authorKefu Chai <kchai@redhat.com>
Thu, 30 Apr 2020 02:44:10 +0000 (10:44 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 1 May 2020 07:05:22 +0000 (15:05 +0800)
commit4c81db2abfd3ceb4df5c1ccacf8e53b0f0b0af70
treea99f775a54e5636980e3a547532f3fdbaf07ea4f
parent39b561fe03f9d2c51af8084773dca8cf414338bc
test/crimson: minimize the lexical scope of thread pool

to show the typical use case of thread pool in a better manner: thread
pool can be initialized *in* a seastar application.

also move `handle_exception()` out to catch all exceptions throwns in
the seastar app.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/crimson/test_thread_pool.cc