summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/qthreadstorage/tst_qthreadstorage.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Restructure tests/benchmarks directory.Bjørn Erik Nilsen2010-02-081-124/+0
| | | | | | We follow the same structure as used in the src directory. This makes it easier to navigate through the jungel, especially now that we are going to add functional tests etc.
* Update copyright year to 2010Jason McDonald2010-01-061-1/+1
| | | | Reviewed-by: Trust Me
* Optimize QThreadStorage with QVectorOlivier Goffart2009-12-181-0/+124
QThreadStorageData::get might be accessed very often. QMap lookup has proven to be too slow. We can expect about 20 instances of QThreadStorage in a typical applications (tested with some KDE applications) So a QVector is more suited Note: we now re-use the ids. Which means that if the QThreadStorage is destroyed before the QThread, and another one is created, we might get crashes (instead of a warning printed to the console) Reviewed-by: brad