]> git.saurik.com Git - wxWidgets.git/commit - src/unix/threadpsx.cpp
Added wxThread::GetMainId().
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 11 Jul 2009 20:46:55 +0000 (20:46 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 11 Jul 2009 20:46:55 +0000 (20:46 +0000)
commitf9226383059545b8f76bcde41f90d18fbfcffe00
tree7b3025e03335a7887bf82afd818b060ba1ae4e36
parent7dfede7b9258ef73c402462e6442b1a8ae069d7a
Added wxThread::GetMainId().

This is useful for checking if a message was logged from the main thread or not and also allows us to implement IsMain() by comparing GetCurrentId() with GetMainId() in all ports and avoid repetition.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/thread.h
interface/wx/thread.h
src/msw/thread.cpp
src/os2/thread.cpp
src/osx/carbon/thread.cpp
src/unix/threadpsx.cpp