www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2272] New: synchronized attribute documentation

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2272

           Summary: synchronized attribute documentation
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: www.digitalmars.com
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: o.dathe gmx.de


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.


-- 
Aug 06 2008
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2272


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #1 from bugzilla digitalmars.com  2008-08-14 03:04 -------
Fixed dmd 1.034 and 2.018


-- 
Aug 14 2008