atomic operation

Hi,

It is said that QNX provides one synchronization way called, aotmic
operation. However, I don’t find the description of the concept of atomic
operations and the way of how to use it.

Anybody knows it?


Thanks,

Belinda

Belinda <yye@is2.dal.ca> wrote:

It is said that QNX provides one synchronization way called, aotmic
operation. However, I don’t find the description of the concept of atomic
operations and the way of how to use it.

Check out the atomic_add() (and friends) function in the library reference
manual.

\

Brian Stecher (bstecher@qnx.com) QNX Software Systems, Ltd.
phone: +1 (613) 591-0931 (voice) 175 Terence Matthews Cr.
+1 (613) 591-3579 (fax) Kanata, Ontario, Canada K2M 1W8

Belinda <yye@is2.dal.ca> wrote:

Hi,

It is said that QNX provides one synchronization way called, aotmic
operation. However, I don’t find the description of the concept of atomic
operations and the way of how to use it.

QNX also provides a bunch of other synchronisation methods, including
semaphores, mutexes, condition variables, reader/writer locks, and
more.

Anybody knows it?

atomic_* are a family of low-level functions for doing “atomic” that
is unpreemptable and uninterruptable operations on simple data types,
look in the table of contents in the library reference under the letter
a for a list of them.

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.