You are not logged in.

#1 2004-09-10 01:39:14

dekernel
Member
From: Vassar, MI USA
Registered: 2004-03-22
Posts: 117

Win32 to Linux

Hi,

I am looking at building up some base classes on threading and locking objects (semaphore & mutexes). I came across information about Poxix calls (http://www.gnu.org/software/libc/manual … index.html), but I am more interested in the core kernel calls.
I am quite familiar with the Win32 API calls, but I can't seem to find anything on the Linux side. I spent some time looking through the glibc-threading stuff, but I finally threw up my hands.

Any help would be appreciated.

Offline

#2 2004-09-10 01:55:43

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: Win32 to Linux


The impossible missions are the only ones which succeed.

Offline

#3 2004-09-10 12:04:31

zezaz
Member
From: Bordeaux, France
Registered: 2004-04-26
Posts: 80
Website

Re: Win32 to Linux

dekernel wrote:

Hi,

I am looking at building up some base classes on threading and locking objects (semaphore & mutexes). I came across information about Poxix calls (http://www.gnu.org/software/libc/manual … index.html), but I am more interested in the core kernel calls.

Any help would be appreciated.

Hi dekernel,

If you just intend to use wrapper classes that work both on Win32 and Linux, have a look at existing libraries, for example Common C++:

  http://www.gnu.org/software/commoncpp/

AFAIK the CommonC++ API is close to Win32 regarding threads and locks.

Offline

#4 2004-09-10 18:45:21

dekernel
Member
From: Vassar, MI USA
Registered: 2004-03-22
Posts: 117

Re: Win32 to Linux

dp

Thanks for the links, but most of those I have already visited. The one link (http://www.lxhp.in-berlin.de/lhpsysc0.html) was new to me so I found it useful.

zezaz

The wrapper classes that you suggested could be useful, but I need either something BSD-like licensed or something from scratch. I plan on going through the code for ideas, but they seem to use Posix calls. Yes, they will work and most likely I will use, but the one additional goals for me was to learn about the inner-workings of the kernel.

In the end, what I plan on doing is doing a webpage that does something like the following:

Win32                        Linux
::CreateThread()          ::clone()
::CreateEvent()            ?????
::CreateSemaphore()    ?????
and so-on. I think this will be quite useful for people like me that have extensive experience with Window, but wants to move over to Linux. I have to give the Devil their do, Microsoft does have a good set of docs on the API's. If you have installed and used the MSDN that comes with Visual Studio, you need to give it a try. In the end, I am hoping that I won't have to recommend using Qt because of time constraints, but it is a proven solution. Money is not as big of an issue versus time.

Offline

Board footer

Powered by FluxBB