This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Pluggable Mutex wrapping API to prevent common deadlocks | ||
---|---|---|---|
Product: | platform | Reporter: | Jaroslav Tulach <jtulach> |
Component: | -- Other -- | Assignee: | Jaroslav Tulach <jtulach> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | mkubec |
Priority: | P3 | Keywords: | API_REVIEW_FAST |
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Bug Depends on: | 123899 | ||
Bug Blocks: | 91291 | ||
Attachments: |
Proposed API with a test, however without implementation
New API based on java.util.concurent.Executor Sample usage of this API in projects to prevent most common deadlocks Imporved patch that makes sure that only first entrace to the mutex invokes the Executor |
Description
Jaroslav Tulach
2007-12-11 16:21:22 UTC
Created attachment 54156 [details]
Proposed API with a test, however without implementation
This API should solve the deadlocks seen after last integration of issue 91291. Created attachment 54167 [details]
New API based on java.util.concurent.Executor
Created attachment 54168 [details]
Sample usage of this API in projects to prevent most common deadlocks
I believe that this issue, together with issue 91291 can improve UI responsivness of project customizers. Please check the API and proposed impls. Typo in apichanges: "priviledged" Created attachment 54593 [details]
Imporved patch that makes sure that only first entrace to the mutex invokes the Executor
Unless somebody objects, I'll integrate tomorrow. http://openide.netbeans.org/source/browse/openide/util/test/unit/src/org/openide/util/MutexWrapTest.java?rev=1.2&content-type=text/vnd.viewcvs-markup http://openide.netbeans.org/source/browse/openide/util/src/org/openide/util/Mutex.java?r1=1.19&r2=1.20 http://openide.netbeans.org/source/browse/openide/util/nbproject/project.properties?r1=1.30&r2=1.31 http://openide.netbeans.org/source/browse/openide/util/apichanges.xml?r1=1.27&r2=1.28 |