Portable Threading, Which Type?

This is a discussion on Portable Threading, Which Type? within the Linux Programming forums, part of the Platform Specific Boards category; OK, Im looking for portable threading support (Working on both winblows and linux) that takes a function pointer void (*func)(void ...

  1. #1
    That Creepy Network Guy DeepBlackMagic's Avatar
    Join Date
    Feb 2003
    Posts
    265

    Portable Threading, Which Type?

    OK, Im looking for portable threading support (Working on both winblows and linux) that takes a function pointer void (*func)(void *) and a void pointer to pass to that function as arguements. Im not interested in ones with alot of overhead like required inter-thread messaging systems, etc. I want to call one function to make this happen, like CreateThread(bla,bla,funcptr,voidptrfuncdata,bla,b la,bla,bla); and boom its done. This is what i am seeking, who can put a name with my description?

  2. #2
    twm
    twm is offline
    root
    Join Date
    Sep 2003
    Posts
    232
    Your best bet is to write wrapper functions around Windows threads and POSIX threads, then conditionally compile.
    The information given in this message is known to work on FreeBSD 4.8 STABLE.
    *The above statement is false if I was too lazy to test it.*
    Please take note that I am not a technical writer, nor do I care to become one.
    If someone finds a mistake, gleaming error or typo, do me a favor...bite me.
    Don't assume that I'm ever entirely serious or entirely joking.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. Replies: 0
    Last Post: 03-20-2008, 07:59 AM
  3. Little Array Difficulty
    By G4B3 in forum C Programming
    Replies: 16
    Last Post: 03-19-2008, 12:59 AM
  4. Errors
    By Rhidian in forum C Programming
    Replies: 10
    Last Post: 04-04-2005, 12:22 PM
  5. Incrementing enum types
    By JarretteBeast in forum C++ Programming
    Replies: 21
    Last Post: 04-17-2003, 08:34 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21