Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 03-01-2009, 03:35 AM   #1
LQ Newbie
Registered: Jan 2009
Posts: 18

Rep: Reputation: 0
Windows API atomic operation compatibility in Linux


I'm looking for a Linux counterpart of the following windows API calls:

I'm familiar with the atomic_ops library, but it doesn't support the atomic operation I've mentioned above.

Old 03-01-2009, 09:17 PM   #2
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

AFAIK, there's no exact equivalent API - but you should be able to create an equivalent in three or four lines: all the necessary primitives are available.

atomic ops is certainly a good place to start.

This link might help:


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
licensed windows API in linux??? Person_1873 Linux - Software 12 05-26-2008 10:09 PM
LXer: This week at LWN: Atomic context and kernel API design LXer Syndicated Linux News 0 04-09-2008 12:41 AM
pipes - reading buffer less than PIPE_BUF is atomic operation? gal_netanel Programming 2 12-18-2007 01:28 AM
Atomic operation question PatrickNew Programming 4 05-12-2007 01:11 AM
windows api in a linux distro???? ronanio Linux - Games 2 10-04-2005 09:57 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:55 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration