Add wxThreadEvent::SetPayload<T>().
authorVáclav Slavík <vslavik@fastmail.fm>
Tue, 19 Jan 2010 13:01:40 +0000 (13:01 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Tue, 19 Jan 2010 13:01:40 +0000 (13:01 +0000)
commitdae60aeebb7c3fedf9c8ce8775bbd7a11bdc508e
treedcdb7840d988365976ff46fedeecb0d8a06ed1e7
parentf8a7dd5f4162313d76ae2e2df46740f3a9e49071
Add wxThreadEvent::SetPayload<T>().

This makes it possible to easily pass custom data between threads, in
type-safe way (thanks to internal use of wxAny). This adds
sizeof(wxAny)==16+sizeof(void*) overhead to wxThreadEvent, but I think
it's cheaper than doing malloc/free on copying.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63187 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/event.h
interface/wx/event.h