Bug 238866 - setProjectDescription can block the UI
Summary: setProjectDescription can block the UI
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 5.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-27 19:39 EDT by Warren Paul CLA
Modified: 2020-09-04 15:17 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Warren Paul CLA 2008-06-27 19:39:38 EDT
The workspace is locked during a build (and other operations).  If you try to save the C project description while the workspace is locked, and do so from the UI, it will block the UI thread until the workspace is no longer locked.

An example that one of our users reported is making changes in the manage build configs dialog and OK'ing while a build was running in the background.  The dialog stays there until the build completes and then goes away as the save is finally done.

I'm not sure the best way to fix this.  The save is meant to be synchronous I believe, so queuing up a save job won't really work.  We could probably override getSchedulingRule in SetCProjectDescriptionOperation and set the rule to the project being saved.  This would help if https://bugs.eclipse.org/bugs/show_bug.cgi?id=198591 gets fixed, and probably other cases where the workspace is locked from something besides a build.

Anyone else have any thoughts on this?