| c++ Programming Glossary: thread_1Use same udp socket for async receive/send http://stackoverflow.com/questions/12252822/use-same-udp-socket-for-async-receive-send  concurrent calls on a single object. Thus this is safe thread_1  thread_2      socket.async_receive_from ... socket.async_send_to.. ... socket.async_send_to ...  and this is safe thread_1  thread_2      socket.async_receive_from ...    socket.async_send_to.. ... but this is specified as not being safe thread_1  thread_2      socket.async_receive_from ... socket.async_send_to.. 
 Why do I need strand per connection when using boost::asio? http://stackoverflow.com/questions/12794107/why-do-i-need-strand-per-connection-when-using-boostasio  calls on the object are unsafe. Thus this is safe thread_1  thread_2      socket.async_receive ...  socket.async_write_some.. ...  socket.async_write_some ... and this is safe thread_1  thread_2      socket.async_receive ...    socket.async_write_some.. ... but this is specified as not being safe thread_1  thread_2      socket.async_receive ... socket.async_write_some.. 
 Memory model ordering and visibility? http://stackoverflow.com/questions/7461484/memory-model-ordering-and-visibility  other operations. std atomic bool ready false int i 0 void thread_1 i 42 ready.store true memory_order_release void thread_2 while.. it reads true from ready . Since the store to ready in thread_1 is a release and the load is an acquire then the store synchronizes.. 
 |