Use atomic int32's here to avoid the need for locking?