Jason70117 / jsr-305

Automatically exported from code.google.com/p/jsr-305
0 stars 0 forks source link

For some classes, some methods are thread safe, but others not. #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently ThreadSafe has a Target of TYPE, however and additional type of
METHOD should be useful for complex situations (which are the sort of thing
you want to docuement)

An example,

I have a class which is thread safe, however I want the ability to
shutdown/close the resource even if it is locked by another thread.  This
method is inherently NOT thread safe as I don't want the closing thread to
get blocked.  This should be documented and handled with care.

Original issue reported on code.google.com by peter.la...@gmail.com on 27 Jan 2009 at 5:23