2272 – synchronized attribute documentation

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 2272 - synchronized attribute documentation
Summary: synchronized attribute documentation
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dlang.org (show other issues)
Version: D2
Hardware: All All
: P3 normal
Assignee: Walter Bright
URL:
Keywords:
Depends on:
Blocks:
Reported: 2008年08月06日 20:28 UTC by Oliver Dathe
Modified: 2015年06月09日 05:14 UTC (History)
0 users

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Oliver Dathe 2008年08月06日 20:28:39 UTC
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 Walter Bright 2008年08月14日 03:04:04 UTC
Fixed dmd 1.034 and 2.018


AltStyle によって変換されたページ (->オリジナル) /