Skip to content

Commit

Permalink
QMutex/FreeBSD: mark the functions as noexcept as it always has futex
Browse files Browse the repository at this point in the history
See qfutex_freebsd_p.h.

Pick-to: 6.8 6.9
Change-Id: I7e7bbb8387ae2e7b0c39fffd65c7b03e3a65a853
Reviewed-by: Allan Sandfeld Jensen <[email protected]>
  • Loading branch information
thiagomacieira committed Dec 13, 2024
1 parent e48fe10 commit c1bc98d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/corelib/thread/qmutex.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ QT_BEGIN_NAMESPACE

#if QT_CONFIG(thread) || defined(Q_QDOC)

#if defined(Q_OS_LINUX) || defined(Q_OS_WIN) // these platforms use futex
#if defined(Q_OS_FREEBSD) || defined(Q_OS_LINUX) || defined(Q_OS_WIN) // these platforms use futex
# define QT_MUTEX_LOCK_NOEXCEPT noexcept
#else
# define QT_MUTEX_LOCK_NOEXCEPT
Expand Down

0 comments on commit c1bc98d

Please sign in to comment.