www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - volatile deprecated, yet still in Phobos?

Hi,

I've tried to compile programs and Phobos without deprecated features on, and
yet I've come across a problem:
Volatile statements are deprecated.

So, for example, in thread.switchOut(), these statements are invalid:

    volatile tobj.m_lock = true;
    fiber_switchContext( oldp, newp );

What is the correct way to fix this?

Thank you!
Jan 31 2011