summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread/qmutex.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2016-04-25 17:55:55 -0700
committerThiago Macieira <thiago.macieira@intel.com>2016-05-08 06:51:27 +0000
commit29efec2d8cc8138f990fedc55a73e48635f999fb (patch)
treee06024a38c8212609715eefaeab2075fa5c88218 /src/corelib/thread/qmutex.cpp
parenta63ca3fa106f4b0f9776bf2004661ef6dec2c0c6 (diff)
Mark QThread::currentThreadId() as a pure function
It always returns the same information for each thread it is called in. But since it's different per thread, we don't think it's const. pthread_self() on Linux is marked const, though we think it really ought to be pure. On other OSes, the annotation isn't present, but the we can assume function is so. Change-Id: Ifea6e497f11a461db432ffff1448c2b37d94d5f3 Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/thread/qmutex.cpp')
0 files changed, 0 insertions, 0 deletions