]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Revert "common/Thread: make _entry_func noexcept" 42712/head
authorIlya Dryomov <idryomov@gmail.com>
Wed, 4 Aug 2021 13:33:04 +0000 (15:33 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Sat, 7 Aug 2021 12:18:29 +0000 (14:18 +0200)
This reverts commit 41142c93a727ed0be73178271169bd0a5cdbe206.
With g++ 8 noexcept here does more harm than good.  See the previous
patch for details.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/common/Thread.cc
src/common/Thread.h

index 50c4e252efc4bf8004a36741607346929fc82913..aaee01aeff31b02300a2d5a419b159e4f36c82d5 100644 (file)
@@ -70,7 +70,7 @@ Thread::~Thread()
 {
 }
 
-void *Thread::_entry_func(void *arg) noexcept {
+void *Thread::_entry_func(void *arg) {
   void *r = ((Thread*)arg)->entry_wrapper();
   return r;
 }
index 396e167a884d3b0367d1077c867421da2e3940e7..5242fb5f3075888a5c1c3a307ae68a353d9640a6 100644 (file)
@@ -48,7 +48,7 @@ class Thread {
   virtual void *entry() = 0;
 
  private:
-  static void *_entry_func(void *arg) noexcept;
+  static void *_entry_func(void *arg);
 
  public:
   const pthread_t &get_thread_id() const;