On Fri, 2009-09-25 at 09:30 -0400, Ryan Stone wrote: > The code that Fabio proposes looks like this: > > sx_slock(&data->lock); > if (data->buffer) > a = *data->buffer; > sx_sunlock(&data->lock); > > > This point is that without a memory barrier on the unlock, the CPU is > free to reorder the instructions into the order is his message.
Ok, then I will sit back and wait for someone with more clue to respond... robert. -- Robert Noland <rnol...@freebsd.org> FreeBSD _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"