bibikurosawa / dokan

Automatically exported from code.google.com/p/dokan
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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: