diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2023-08-17 07:44:39 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2023-08-21 11:52:00 -0700 |
commit | 9f4aeeabb982cfc4306c9d350dbb68f64914fb32 (patch) | |
tree | 6a98103f1415f4d3c1178ee7d88878c2775a88bd /src/qml/memory | |
parent | 487bd23ee8aa7e06f411da796294ef497fc5bd9c (diff) |
QML: remove pthread_attr_init() from stackPropertiesGeneric()
The docs for pthread_getattr_np() say:
"The pthread_getattr_np() function initializes the thread attributes
object referred to by attr"
The comment in the glibc pthreads.h implementation even says:
/* Initialize thread attribute *ATTR with attributes corresponding to the
already running thread TH. It shall be called on uninitialized ATTR
and destroyed with pthread_attr_destroy when no longer needed. */
Pick-to: 6.5 6.6
Change-Id: I964c2b1e6b834feb9710fffd177c32dbb898fa3c
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/qml/memory')
-rw-r--r-- | src/qml/memory/qv4stacklimits.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/qml/memory/qv4stacklimits.cpp b/src/qml/memory/qv4stacklimits.cpp index 663ece09a2..b8e7e38b92 100644 --- a/src/qml/memory/qv4stacklimits.cpp +++ b/src/qml/memory/qv4stacklimits.cpp @@ -234,7 +234,6 @@ StackProperties stackPropertiesGeneric(qsizetype stackSize = 0) pthread_t thread = pthread_self(); pthread_attr_t sattr; - pthread_attr_init(&sattr); # if defined(PTHREAD_NP_H) || defined(_PTHREAD_NP_H_) || defined(Q_OS_NETBSD) pthread_attr_get_np(thread, &sattr); # else |