You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golan...@googlegroups.com
Do I need a mutex for a bool?
Daniel Morsing
unread,
Oct 3, 2012, 1:39:00 PM10/3/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to tomwilde, golan...@googlegroups.com
On Wed, Oct 3, 2012 at 7:04 PM, tomwilde <sedevel...@gmail.com> wrote:
> Do I need a mutex for a bool?
>
> --
>
>
Yes.
Or send it on a channel.
bryanturley
unread,
Oct 3, 2012, 1:55:21 PM10/3/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golan...@googlegroups.com
Or just use a uint32 and pretend it is a bool with http://golang.org/pkg/sync/atomic/ Probably faster than a mutex or a channel for just a single (pseudo) bool.