Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 312405 - PublishJob could be more thread safe
Summary: PublishJob could be more thread safe
Status: RESOLVED FIXED
Alias: None
Product: WTP ServerTools
Classification: WebTools
Component: wst.server (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: 3.2.2   Edit
Assignee: Angel Vera CLA
QA Contact: Angel Vera CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-11 08:14 EDT by Gary Karasiuk CLA
Modified: 2017-10-11 16:34 EDT (History)
0 users

See Also:


Attachments
example of making things safer (1.01 KB, patch)
2010-05-11 08:14 EDT, Gary Karasiuk CLA
arvera: iplog+
arvera: review+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gary Karasiuk CLA 2010-05-11 08:14:19 EDT
I was looking at PublishJob for other reasons, and I have some suggestions for making it a little more thread safe.

See the attached patch. 

This patch is just an example, of things that you should be considering when running code in a different thread. (I didn't load all your plug-ins to see if you ever subclass this class).

I'm not suggesting that this be changed for 3.2.
Comment 1 Gary Karasiuk CLA 2010-05-11 08:14:54 EDT
Created attachment 167902 [details]
example of making things safer
Comment 2 Angel Vera CLA 2010-05-11 08:49:01 EDT
This seems like a good suggestion, I will check on it for the next release
Comment 3 Angel Vera CLA 2010-08-23 14:39:23 EDT
changes committed to 32M
Comment 4 Angel Vera CLA 2010-08-23 17:22:19 EDT
Changes committed and released to 32M and HEAD(3.3)
Comment 5 Angel Vera CLA 2010-08-24 14:16:44 EDT
Fixed.
Comment 6 Eclipse Genie CLA 2017-10-11 16:34:24 EDT
New Gerrit change created: https://git.eclipse.org/r/108981