4 messages in net.java.dev.jna.usersRe: [jna-users] multiple directories ...
FromSent OnAttachments
Stephen ZackNov 2, 2007 8:29 am 
Timothy WallNov 2, 2007 11:44 am 
Doug PatriarcheNov 5, 2007 7:34 am 
Timothy WallNov 6, 2007 8:37 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] multiple directories with FileMonitorActions...
From:Doug Patriarche (do@patriarche.net)
Date:Nov 5, 2007 7:34:43 am
List:net.java.dev.jna.users

On 11/2/07, Timothy Wall <twal@dev.java.net> wrote:

One guess would be that you might need to use a single IO completion port for *all* dir entries, rather than setting up a new one for each (glancing at the code now, I see there's a single "port" member, that gets overwritten with each added file).

That's correct, a single IO completion port can be associated with more than one monitored dir. But the code looks correct to me: the second argument to CreateIoCompletionPort is either null or an existing port. In the former case a new port is created and returned, while in the latter the dir is associated with the existing port, which is returned.

Regards, Doug