FAQ
See <http://play.golang.org/p/1bVtjjKIm->. I am not quite understanding why
it deadlocks. Any help in pointing out what I'm missing is greatly
appreciated!

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Andrey mirtchovski at May 15, 2013 at 5:12 am
    you're sending a copy of 'wg' instead of the actual thing.

    http://play.golang.org/p/7QerlB3Bs9
    On Tue, May 14, 2013 at 10:26 PM, wrote:
    See <http://play.golang.org/p/1bVtjjKIm->. I am not quite understanding why
    it deadlocks. Any help in pointing out what I'm missing is greatly
    appreciated!

    --
    You received this message because you are subscribed to the Google Groups
    "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an
    email to [email protected].
    For more options, visit https://groups.google.com/groups/opt_out.
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
    For more options, visit https://groups.google.com/groups/opt_out.
  • Jesse McNelis at May 15, 2013 at 5:15 am

    On Wed, May 15, 2013 at 2:26 PM, wrote:

    See <http://play.golang.org/p/1bVtjjKIm->. I am not quite understanding
    why it deadlocks. Any help in pointing out what I'm missing is greatly
    appreciated!

    You want to take a pointer to that WaitGroup so that all the goroutines are
    using the same instance.

    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
    For more options, visit https://groups.google.com/groups/opt_out.
  • Sam at May 15, 2013 at 5:51 am
    Ah, got it - thanks!
    On Tuesday, May 14, 2013 10:15:43 PM UTC-7, Jesse McNelis wrote:
    On Wed, May 15, 2013 at 2:26 PM, <[email protected] <javascript:>> wrote:

    See <http://play.golang.org/p/1bVtjjKIm->. I am not quite understanding
    why it deadlocks. Any help in pointing out what I'm missing is greatly
    appreciated!

    You want to take a pointer to that WaitGroup so that all the goroutines
    are using the same instance.
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedMay 15, '13 at 5:10a
activeMay 15, '13 at 5:51a
posts4
users3
websitegolang.org

People

Translate

site design / logo © 2023 Grokbase