Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP

hp.com home


Installing and using atomic_ops

» 

HP Labs

» Research
» News and events
» Technical reports
» About HP Labs
» Careers @ HP Labs
» People
» Worldwide sites
» Downloads
Content starts here

Installing atomic_ops

If you are building and installing the package under Microsoft Windows, using the Microsoft tools, please see the README_win32.txt file in the distribution.

To install atomic_ops on other platforms, unpack the distribution and change to the resulting directory. Then:

  1. Type ./configure --prefix=install_directory
  2. Type make. This will build two small libraries. The low level libatomic_ops.a library contains support code for the atomic_ops.h header, if needed on your platform. Its license normally allows use in proprietary software. The libatomic_ops_gpl.a library contains higher level facilities, notably a memory allocator that may be safely used from signal handlers. This second library is covered by the GNU General Public License.
  3. Type make check to test the libraries and header files.
  4. Type make install to install header files, libraries, and documentation under the directory specified in the first step.
To use the library, include one or more of atomic_ops.h (low-level primitives), atomic_ops_stack.h, and atomic_ops_malloc.h. Link against libatomic_ops.a (if only atomic_ops.h is used) or both libraries, with libatomic_ops_gpl.a listed first. (On many platforms, many of the low-level facilities are implemented entirely in header files, and the library may not be required. For portability, it should however be supplied to the linker.)

The interfaces are described in README.txt, README_stack.txt, and README_malloc.txt.

project links

» project home
» using atomic_ops
» example
» downloads
» license
» people
Printable version
Privacy statement Using this site means you accept its terms Feedback to HP Labs
© 2008 Hewlett-Packard Development Company, L.P.