Make empty and dirty atomic and immediate; reinstate George's patch b63a1e8
Merge pull request #9 from jaynel/selective-receive

Make empty/dirty atomic and immediate; reinstate George's patch b63a1e8