Ruby - synchronize B0 w/ C++