]> git.saurik.com Git - wxWidgets.git/commit - src/mac/carbon/thread.cpp
Applied patch [ 584057 ] Fixes calculation bug in wxThread::Sleep
authorJulian Smart <julian@anthemion.co.uk>
Thu, 8 Aug 2002 10:04:13 +0000 (10:04 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 8 Aug 2002 10:04:13 +0000 (10:04 +0000)
commit7f19fc8cae9c4eced886d3680dab7a48476f1c1e
tree7eb0e9fdc1a7962348b04751d02a6ab14956834e
parenta57a1fb7e07a901a77d00932b6cae8ce4ab55c2e
Applied patch [ 584057 ] Fixes calculation bug in wxThread::Sleep

There's a problem in src/mac/thread.cpp function
wxThread::Sleep when CLOCKS_PER_SEC is not
1000. The amount-to-sleep code doesn't take into
account this value. Due to this when I did Sleep(1000) it
was sleeping a fraction of a second because on my Mac
CLOCKS_PER_SEC is 60. This patch fixes it.

Dimitri Schoolwerth (dimitrishortcut)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16411 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/mac/carbon/thread.cpp
src/mac/thread.cpp