Autor Beitrag
hathor
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 19.03.07 11:26 
Kennt jemand eine sinnvolle Verwendung von Fibers anstelle von Threads in DELPHI?
Wer hat Erfahrung mit Fibers?
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Mo 19.03.07 12:08 
Was ist das?

_________________
Markus Kinzler.
hathor
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 19.03.07 12:11 
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Mo 19.03.07 12:35 
In Delphi gibt es keine vordefinierte Struktur oder Klasse, um Fibers direkt zu verwenden ... Jegliche Fiber-Wendung musst Du daher selber über die Win-API realisieren ...

Ein Beispiel wozu man Fibers verwenden kann ist eine Art Task-Steuerung, wenn Du mehrere anstehende Aufgaben hast, die Du der Reihe nach abarbeiten möchtest und die normale Thread-Verwaltung auf Grund der ungeordneten Ablaufsteuerung zu viel Synchronisationsaufwand entstehen würde ...

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
hathor
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 19.03.07 13:58 
www.flounder.com/fibers.htm

Falls jemand sie für DELPHI verfügbar machen kann:

The CFiber class:

www.flounder.com/fibers.zip
----------------------------------------------------------------------
Nachtrag:

Windows Fibers in DELPHI 7 enthalten:
These functions are redeclared because Delphi 7's Windows.pas declare
them incorrectly.

sourceforge.net/proj...les.php?group_id=702