"atomic_ops_stack.h" - Header file describing almost lock-free stack.
"atomic_ops_malloc.h" - Header file describing almost lock-free malloc.
"libatomic_ops_gpl.lib" - Library containing implementation of the
- above two. The atomic_ops.h implementation
- is entirely in the header files in Win32.
+ above two (plus AO_pause() defined in atomic_ops.c).
+ The atomic_ops.h implementation is entirely in the
+ header files in Win32.
Most clients of atomic_ops.h will need to define AO_ASSUME_WINDOWS98 before
including it. Compare_and_swap is otherwise not available.
#
# Copyright (c) 2003-2005 Hewlett-Packard Development Company, L.P.
#
-# The really trivial win32/VC++ Makefile. Note that atomic_ops.c isn't useful.
+# The really trivial win32/VC++ Makefile. Note that atomic_ops.c defines
+# only AO_pause (used by atomic_ops_stack).
# And we rely on a pre-built test_atomic_include.h and generalize-small.h,
# since we can't rely on sed. But we don't keep test_atomic_include.h in
# the development repository any longer, so if you want to do "make check"
#CPU=$(MY_CPU)
#!include <ntwin32.mak>
-LIB_OBJS=atomic_ops_stack.obj atomic_ops_malloc.obj
+LIB_OBJS=atomic_ops.obj atomic_ops_malloc.obj atomic_ops_stack.obj
all: libatomic_ops_gpl.lib
+atomic_ops.obj:
+ cl -W3 -O2 -c atomic_ops.c
+
atomic_ops_stack.obj:
cl -W3 -O2 -c -DAO_ASSUME_WINDOWS98 atomic_ops_stack.c