cvs commit: projects/csup mux.c

Maxime Henrion <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.projects
Message-ID <200602010553.k115rJCx024461__2457.22659533403$1138773243$gmane$org@repoman.freebsd.org>
mux         2006-02-01 05:53:19 UTC

  FreeBSD projects repository

  Modified files:
    csup                 mux.c 
  Log:
  - Not only did I blame GCC for a so-called bogus warning about an
    unitialized variable when we has indeed right, but I managed to leak
    channels mutexes in the error code path of both chan_read() and
    chan_write()!  Really fix the variable initialization by rewriting
    the loops more sanely, and fix the aforementioned leaks.
  - Rewrite sender_wakeup() more like in CVSup by retaining the status
    of the sender thread, thus avoiding unnecessary pthread_cond_signal()
    calls.
  
  Revision  Changes    Path
  1.55      +41 -19    projects/csup/mux.c
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-projects
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.