chore: add noreturn to more methods
This commit is contained in:
parent
8a83f68ff0
commit
865365b2fa
5 changed files with 4 additions and 5 deletions
|
|
@ -95,7 +95,6 @@ private:
|
||||||
static void threadCancel(int);
|
static void threadCancel(int);
|
||||||
static void *threadSignalHandler(void *vrep);
|
static void *threadSignalHandler(void *vrep);
|
||||||
|
|
||||||
private:
|
|
||||||
using ThreadList = std::list<ArchThread>;
|
using ThreadList = std::list<ArchThread>;
|
||||||
|
|
||||||
static ArchMultithreadPosix *s_instance;
|
static ArchMultithreadPosix *s_instance;
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ Thread &Thread::operator=(const Thread &thread)
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Thread::exit(void *result)
|
[[noreturn]] void Thread::exit(void *result)
|
||||||
{
|
{
|
||||||
throw XThreadExit(result);
|
throw XThreadExit(result);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ public:
|
||||||
\endcode
|
\endcode
|
||||||
or add the \c RETHROW_XTHREAD macro to the \c catch(...) block.
|
or add the \c RETHROW_XTHREAD macro to the \c catch(...) block.
|
||||||
*/
|
*/
|
||||||
static void exit(void *);
|
[[noreturn]] static void exit(void *);
|
||||||
|
|
||||||
//! Cancel thread
|
//! Cancel thread
|
||||||
/*!
|
/*!
|
||||||
|
|
|
||||||
|
|
@ -119,7 +119,7 @@ void SocketMultiplexer::removeSocket(ISocket *socket)
|
||||||
unlockJobList();
|
unlockJobList();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SocketMultiplexer::serviceThread(void *)
|
[[noreturn]] void SocketMultiplexer::serviceThread(void *)
|
||||||
{
|
{
|
||||||
std::vector<IArchNetwork::PollEntry> pfds;
|
std::vector<IArchNetwork::PollEntry> pfds;
|
||||||
IArchNetwork::PollEntry pfd;
|
IArchNetwork::PollEntry pfd;
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@ private:
|
||||||
// and m_update while m_pollable and m_polling are true. all other
|
// and m_update while m_pollable and m_polling are true. all other
|
||||||
// threads must only modify these when m_pollable and m_polling are
|
// threads must only modify these when m_pollable and m_polling are
|
||||||
// false. only the service thread sets m_polling.
|
// false. only the service thread sets m_polling.
|
||||||
void serviceThread(void *);
|
[[noreturn]] void serviceThread(void *);
|
||||||
|
|
||||||
// create, iterate, and destroy a cursor. a cursor is used to
|
// create, iterate, and destroy a cursor. a cursor is used to
|
||||||
// safely iterate through the job list while other threads modify
|
// safely iterate through the job list while other threads modify
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue