Bug 2272 – synchronized attribute documentation

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2008-08-06T20:28:00Z
Last change time
2015-06-09T05:14:56Z
Assigned to
bugzilla
Creator
o.dathe

Comments

Comment #0 by o.dathe — 2008-08-06T20:28:39Z
The synchronized attribute for class methods should be documented somewhere in attribute.html and/or in class.html. Most importantly it should be mentioned that it represents a monitor operation and thus behaves like in Java or like synchronized(this). There seems to be confusion about that quite often. Additionally the case for static synchronized methods should be mentioned (uses classinfo?). Since one might assume the synchronized attribute works like the synchronized{} statement one might also assume the synchronized method becomes a distinct critical section. This misunderstanding should also be cleared out in statement.html.
Comment #1 by bugzilla — 2008-08-14T03:04:04Z
Fixed dmd 1.034 and 2.018