Hello, All.

   Currently to do subj, code like this is used:

>               while (true)
>               {
>                       AtomicCounter::counter_type old = dbb_flags;
>                       if ((old & (DBB_sweep_in_progress | 
> DBB_sweep_starting)) || (dbb_ast_flags & DBB_shutdown))
>                               return false;
>
>                       if (dbb_flags.compareExchange(old, old | 
> DBB_sweep_starting))
>                               break;
>               }

   Is there a reason not to use _InterlockedOr() intrinsic with MSVC and 
__sync_or_and_fetch() with GCC for such cases?

-- 
   WBR, SD.

------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to