Skip to content
This repository has been archived by the owner on Dec 5, 2018. It is now read-only.

Enhancement Request: Hooks for callback thread start and exit #13

Open
GoogleCodeExporter opened this issue Mar 16, 2015 · 0 comments
Open

Comments

@GoogleCodeExporter
Copy link

It would be nice to have hooks available for the Dokan callback threads, 
which get called right after a thread has been created and just before it 
is exiting.

There are several setup and cleanup activities an application might want to 
perform whenever a callback thread is started or is exiting.

One example would be: If Dokan is used with Java through JNI one has to 
attach each thread that wants to perform any JNI invocations to the JVM. 
With these hooks in place attaching and detaching can happen once (when the 
thread is starting and existing respectively) and not with each callback 
(as it is currently done by JDokan), which can negatively impact 
performance.

I have already made some modifications to the dokan code to allow for that 
(based on 0.3.7). The files attached to this report contain the few changes 
I had to make. Obviously the final versions do not have to look exactly 
like that but it might give whoever is looking at this case a better idea 
what I mean.

All changes have a comment section such as the following to clearly mark 
them:

/**
 * Added by Andreas Schuler:
 */

Original issue reported on code.google.com by dres.sch...@gmail.com on 21 Sep 2008 at 10:41

Attachments:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant