public int set ( final int flags ) { for ( ; ; ) { int current = _flags . get ( ) ; int newValue = current | flags ; if ( _flags . compareAndSet ( current , newValue ) ) { return current ; } } }
Atomically add the given flags to the current set