Skip to content

Commit

Permalink
Correct QThread::idealThreadCount() docs
Browse files Browse the repository at this point in the history
QThread::idealThreadCount() now returns 1 if the number
of CPU cores could not be detected.

Change-Id: I60b75c46fbfa2891c28e71fed65589e2ce5a5c17
Reviewed-by: Morten Johan Sørvig <[email protected]>
Reviewed-by: Thiago Macieira <[email protected]>
  • Loading branch information
Morten Johan Sørvig committed Aug 2, 2017
1 parent e44ff19 commit 37dc5bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/corelib/thread/qthread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ QThreadPrivate::~QThreadPrivate()
\fn int QThread::idealThreadCount()
Returns the ideal number of threads that can be run on the system. This is done querying
the number of processor cores, both real and logical, in the system. This function returns -1
the number of processor cores, both real and logical, in the system. This function returns 1
if the number of processor cores could not be detected.
*/

Expand Down

0 comments on commit 37dc5bb

Please sign in to comment.