public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/51701] New: Remove reference to Henry Suter's RWLock from documentation
@ 2011-12-29 14:54 jb at gcc dot gnu.org
  2011-12-29 15:22 ` [Bug libstdc++/51701] " redi at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: jb at gcc dot gnu.org @ 2011-12-29 14:54 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51701

             Bug #: 51701
           Summary: Remove reference to Henry Suter's RWLock from
                    documentation
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jb@gcc.gnu.org


In the libstdc++ manual at

http://gcc.gnu.org/onlinedocs/libstdc++/manual/ext_io.html

it says "If you want to access a filebuf's file descriptor to implement file
locking (e.g. using the fcntl() system call) then you might be interested in
Henry Suter's RWLock class. "

There are a couple issues with this RWLock class:

- The code has apparently disappeared from the internet, I was able to locate
it only via the Wayback machine.

- Having looked at the code, it is racy and wrong: 

1) For the code to operate correctly, opening a file and reading and writing
stuff from that file would need to be atomic. No target I'm aware of provides
such a guarantee.

2) It leaks memory; RWLockFileName is not deleted in the destructor.


Thus, I suggest that the sentence I quoted above should be removed.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libstdc++/51701] Remove reference to Henry Suter's RWLock from documentation
  2011-12-29 14:54 [Bug libstdc++/51701] New: Remove reference to Henry Suter's RWLock from documentation jb at gcc dot gnu.org
@ 2011-12-29 15:22 ` redi at gcc dot gnu.org
  2011-12-29 15:42 ` redi at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2011-12-29 15:22 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51701

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2011-12-29
         AssignedTo|unassigned at gcc dot       |redi at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libstdc++/51701] Remove reference to Henry Suter's RWLock from documentation
  2011-12-29 14:54 [Bug libstdc++/51701] New: Remove reference to Henry Suter's RWLock from documentation jb at gcc dot gnu.org
  2011-12-29 15:22 ` [Bug libstdc++/51701] " redi at gcc dot gnu.org
@ 2011-12-29 15:42 ` redi at gcc dot gnu.org
  2011-12-29 15:43 ` redi at gcc dot gnu.org
  2011-12-29 17:26 ` redi at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2011-12-29 15:42 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51701

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-12-29 15:31:05 UTC ---
For the record the code can be found at
http://web.archive.org/web/20070810183256/http://suter.home.cern.ch/suter/RWLock.html
but I agree that referring to it from the libstdc++ manual isn't very useful


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libstdc++/51701] Remove reference to Henry Suter's RWLock from documentation
  2011-12-29 14:54 [Bug libstdc++/51701] New: Remove reference to Henry Suter's RWLock from documentation jb at gcc dot gnu.org
  2011-12-29 15:22 ` [Bug libstdc++/51701] " redi at gcc dot gnu.org
  2011-12-29 15:42 ` redi at gcc dot gnu.org
@ 2011-12-29 15:43 ` redi at gcc dot gnu.org
  2011-12-29 17:26 ` redi at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2011-12-29 15:43 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51701

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-12-29 15:41:45 UTC ---
Author: redi
Date: Thu Dec 29 15:41:37 2011
New Revision: 182724

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182724
Log:
    PR libstdc++/51701
    * doc/xml/manual/extensions.xml (Input and Output): Remove reference
    to RWLock class.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/doc/xml/manual/extensions.xml


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libstdc++/51701] Remove reference to Henry Suter's RWLock from documentation
  2011-12-29 14:54 [Bug libstdc++/51701] New: Remove reference to Henry Suter's RWLock from documentation jb at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2011-12-29 15:43 ` redi at gcc dot gnu.org
@ 2011-12-29 17:26 ` redi at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2011-12-29 17:26 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51701

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |documentation
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.7.0

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-12-29 15:43:28 UTC ---
done


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-12-29 15:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-29 14:54 [Bug libstdc++/51701] New: Remove reference to Henry Suter's RWLock from documentation jb at gcc dot gnu.org
2011-12-29 15:22 ` [Bug libstdc++/51701] " redi at gcc dot gnu.org
2011-12-29 15:42 ` redi at gcc dot gnu.org
2011-12-29 15:43 ` redi at gcc dot gnu.org
2011-12-29 17:26 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).