[fpc-devel] syncobjs unit

Michael Van Canneyt michael at freepascal.org
Mon Nov 27 18:40:52 CET 2006



On Mon, 27 Nov 2006, Aleš Katona wrote:

> 
> > I also think this is the right way. If you specify OS specific return codes
> > per threadmanager, this will lead to unnecssary breakage.
> 
> Return codes are one thing, argument another. What are we going to do
> about those? Eg: see "ExitCode" argument. It's a "dword" but int is
> expected as well.
> 
> These can't be internaly abstracted like error codes.

Take the lowest common denominator. 

I think you're seeking too much problems. Just implement an interface that
is workable on all OS-es, and can be used to implement TThread and syncobjs.

We don't need the full-blown Win32 API for threads, nor do we need the
complete pthreads.

Michael.


More information about the fpc-devel mailing list