Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2005-11

win32 patch for threads

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Florian Klaempfl
to Ales Katona
Ales Katona wrote
This patch fixes a bug in win32 threads. Warning: created in win32 :) (no idea about lineendings)

Aplied, also for wince and netware.

Show quoted text 39 lines
Ales ------------------------------------------------------------------------ Index: rtl/win32/tthread.inc =================================================================== --- rtl/win32/tthread.inc (revision 1647) +++ rtl/win32/tthread.inc (working copy) @@ -97,7 +97,7 @@ { TThread } -function ThreadProc(ThreadObjPtr: Pointer): Integer; +function ThreadProc(ThreadObjPtr: Pointer): Integer; stdcall; var FreeThread: Boolean; Thread: TThread absolute ThreadObjPtr; Index: rtl/inc/threadh.inc =================================================================== --- rtl/inc/threadh.inc (revision 1647) +++ rtl/inc/threadh.inc (working copy) @@ -26,7 +26,7 @@ type PEventState = pointer; PRTLEvent = pointer; // Windows=thandle, other=pointer to record. - TThreadFunc = function(parameter : pointer) : ptrint; + TThreadFunc = function(parameter : pointer) : ptrint; stdcall; trtlmethod = procedure of object; // Function prototypes for TThreadManager Record. ------------------------------------------------------------------------ _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email

Ales Katona
to Florian Klaempfl
Florian Klaempfl wrote
Aplied, also for wince and netware.

Sorry, it seems I broke Unix and all non-stdcall-using platforms. This patch fixes that(apply after the first one) but it only {ifdefs} windows, not netware or others, so please add those as necessery.

Ales

Reply by email