Re: [fpc-pascal] QueueUserAPC Similar Cross platform Functionality

2009-10-09 Thread David Emerson
Hi Andrew, I don't really understand your question as well as I'd like to (in particular, I don't understand the difference between a callback and any other sort of procedure; as well as other confusions) So this might be bunk advice, but here it is... Have you considered making your own

Re: [fpc-pascal] QueueUserAPC Similar Cross platform Functionality

2009-10-09 Thread Andrew Brunner
In theory that's what I'm planning to do to emulate the functionality. I'm going to create a queue using a FIFO technique and empty out the queue executing the callbacks for each item in the queue - from a manager thread. Thanks for the advice. -Andrew On Fri, Oct 9, 2009 at 11:40 AM, David

[fpc-pascal] QueueUserAPC Similar Cross platform Functionality

2009-10-08 Thread Andrew Brunner
Hi there, I've got a unit I'm porting from Windows to Linux and I came across a QueueUserAPC (Kernel32 Windows) I make to add a callback method that gets executed by the thread I added this to. function QueueUserAPC(Callback: Pointer; hThread: THandle; dwData:DWORD): boolean; stdcall; When the