Stefan Csomor
5efd525f9f
defer Terminating the Task until it is really done
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27355 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-19 14:38:12 +00:00
Robin Dunn
5b65f1364d
If the threads module hasn't been initialized yet then we can assume
...
the IsMain == true. This allows wxASSERTs that happen before the
wxApp is created (as can easily happen in wxPython unfortunatly) to
behave normally instead of just calling wxTrap.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-18 19:59:18 +00:00
Stefan Csomor
ed197fcf15
adding MPYield after releasing constructs like critical regions etc.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27314 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-16 19:32:01 +00:00
Stefan Csomor
881b5a06e2
adding pthreads mutex to possible wxMutex implementations
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27305 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-16 05:48:27 +00:00
Julian Smart
9e1eb0ed65
Added include to get wxMacWakeUp
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27271 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-14 10:11:39 +00:00
Stefan Csomor
c3e8a84f3b
logging error instead of message box
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27268 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-14 09:11:35 +00:00
Stefan Csomor
68ba3b21da
switching to preemptive implementation (from mpthread.cpp)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27260 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-13 18:22:14 +00:00
Stefan Csomor
39fbbfda3c
otherwise all runloop dependent callbacks cannot work outside of the main thread
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-18 16:31:50 +00:00
Stefan Csomor
7f0c3a63a0
OS Header includes corrected
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-07 06:01:53 +00:00
Stefan Csomor
75dd6ce410
corrected sleep
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25744 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-11 15:22:14 +00:00
Stefan Csomor
1a527fbc0a
corrected Sleep implementation (as clock() under Mach does only return our own passed time)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-08 12:38:11 +00:00
Dimitri Schoolwerth
e64313babf
Applied patch #809919 (Allows wxMac threads to run at fullspeed).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-24 20:53:35 +00:00
Robin Dunn
2dbc444a19
Move more stuff into base for wxMac so that two level namespace dylibs
...
can be used on OS X.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-13 00:03:18 +00:00
Vadim Zeitlin
71a660a312
removed some stray MSW code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21807 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-09 20:18:20 +00:00
Julian Smart
1dfc3cda6e
Setting state to STATE_NEW in wxThread::Create
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20481 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-04 20:51:09 +00:00
Stefan Csomor
427ff66291
wxMac Unicode support
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-27 20:33:32 +00:00
Stefan Csomor
7e0e5fe1e4
value expansion to double
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19513 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-06 16:38:19 +00:00
Julian Smart
e40298d54e
Tidied space and tabs in wxMac files
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19397 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-02-28 23:48:13 +00:00
Julian Smart
7f19fc8cae
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
2002-08-08 10:04:13 +00:00
Gilles Depeyrot
f5bb225133
improved memory liberation (explicitly set to NULL after delete)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15933 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-23 17:22:54 +00:00
Stefan Csomor
ad816ba539
adapted to new ..internal structure
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-13 07:04:46 +00:00
Gilles Depeyrot
d84afea9d1
corrected warnings when compiling with -Wall -W
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15412 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-07 21:58:27 +00:00
Stefan Csomor
71110b404c
adapted to new APIs for threads and floodfilling
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14912 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-02 17:42:11 +00:00
Gilles Depeyrot
2f056c85d1
tweaked conditional compilation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-26 22:05:56 +00:00
Robin Dunn
ea736fec49
wxThread::GetCurrentId for wxMac
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-16 06:32:40 +00:00
Stefan Csomor
66a09d4776
fixes for using non opaque structs under debug classic, support for ATSU and pixel pattern.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13504 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-11 14:07:02 +00:00
Stefan Csomor
9c152f8094
when the system is not yet start fully (macos not inited) mutexes and critical sections take shortcuts, these are ok since at this time there is always only on thread
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13385 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-05 16:37:49 +00:00
Stefan Csomor
76a5e5d21e
removing dependancy on mac headers from public wx headers (eventually adding wx/mac/private and typecasts)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-04 17:26:02 +00:00
Ron Lee
6fe7378863
Added (and documented :) optional stack size specification for wxThread.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-03 05:53:39 +00:00
Stefan Csomor
5b781a6729
updated mac sources (CW 5.3 working , CW6 still having code gen problems)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-02-08 21:13:12 +00:00
Stefan Csomor
e9d7ad4dbf
added cw6 fixes and patrick's patches
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-12-10 14:41:41 +00:00
Stefan Csomor
a959b08869
transparent xpm bitmaps added, thread support finished
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-08-14 08:16:52 +00:00
Stefan Csomor
e75491071d
mac adaptions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4458 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-11-09 15:24:52 +00:00
Stefan Csomor
169935ad4e
latest CW additions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-02-01 15:00:12 +00:00
Stefan Csomor
e9576ca53d
started once again from stubs
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1296 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-01-01 15:56:08 +00:00