[Ace-users] Proactor on WIN32 with multiprocessor Xeon - anyonegot this working?

Chris chris at chrisbird.com
Sat Feb 23 11:10:46 CST 2008


Hi Alex,

I have now started building my code more around the Proactor code used
in JAWS rather than Proactor_Test, and have been very pleased with the
outcome.
I will certainly take the steps that you recommend during shutdown,

Many thanks,

Chris.

On Jan 29, 4:08 am, "Alexander Libman"
<alexander.lib... at earthlink.net> wrote:
> Hi Chris,
> The Proactor_Test does not perform gracefull shutdown.
> It may work for single CPU platform, but easily can have access violation on
> multi-CPU box.
> The problem is that   Proactor_Test starts to delete Client/Server instances
> while completion callbacks can be active
> in Proactor_Task  thread pool.
> The correct solution  can be  two step shutdown process:
> a) initiate cancellation of all pending operation using cancel() and
> closesocket() methods
>    (you should use both of them as Windows CancelIO() could have no effect )
> b) waiting on special event/condition when all Clients/Servers are
> self-destroyed.
>
> Regards,
> Alex



More information about the Ace-users mailing list