Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Stackful coroutines library for Delphi and FreePascal that is not object oriented was updated again...

12 views
Skip to first unread message

Ramine

unread,
Aug 9, 2016, 4:15:31 PM8/9/16
to
Hello,

Stackful coroutines library for Delphi and FreePascal that is not object
oriented was updated again and i have thoroughly tested it
and it is more stable now.

I have just ported it to the 64 bit FreePascal by writing the correct
assembler routines.

My contribution is:

- I have wrote the assembler routines of the 32 bit FreePascal unit
and i have wrote the assembler routines of the 64 bit Delphi
and FreePascal unit.

- And i have wrote a powerful mutex and semaphore , you will find there
documentation inside the Threads.pas and Threads64.pas units.

Here is the use cases of this coroutines library:

- Context switching is expensive with threads, with coroutines it is
really fast.

- Coroutines eliminate race conditions and that's really interesting
on embedded systems and other applications.

- My mutex and semaphore of my coroutines library are much much more
faster than the mutex and semaphore used on processes and threads.


Use the threads.pas unit for 32 bit compilers, and use threads64.pas
unit for 64 bit compilers.

You can download this Stackful coroutines library for Delphi and
FreePascal from:

https://sites.google.com/site/aminer68/stackful-coroutines-library-for-delphi-and-freepascal


Look at the defines.inc include file, you can
configure it like this:

{$DEFINE XE} for Delphi XE compilers.

{$DEFINE FPC} for FreePascal.

{$DEFINE Delphi} for Delphi 7 to Delphi 2007 compilers.

Language: FPC Pascal v2.2.0+ / Delphi 5+: http://www.freepascal.org/

Operating Systems: Win,Linux,Mac OS X (x86).



Thank you,
Amine Moulay Ramdane.


0 new messages