Looking for light cross platform Threading library

This is a discussion on Looking for light cross platform Threading library within the C++ Programming forums, part of the General Programming Boards category; Hello all im developing tiny application that is multi platform and now im looking for multi threading light library that ...

  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    58

    Looking for light cross platform Threading library

    Hello all
    im developing tiny application that is multi platform and now im
    looking for multi threading light library that will be multi platform , freeware.

  2. #2
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,158
    Quote Originally Posted by umen242 View Post
    Hello all
    im developing tiny application that is multi platform and now im
    looking for multi threading light library that will be multi platform , freeware.
    boost::thread is pretty portable.

  3. #3
    Registered User
    Join Date
    Mar 2008
    Posts
    58
    is it small ?

  4. #4
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,158
    Quote Originally Posted by umen242 View Post
    is it small ?
    Define "small." It's just a thin wrapper around the native threading API, whatever it happens to be. On most platforms, the thread API can be linked dynamically, so I'd expect it would add very little size.

  5. #5
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,145
    Qt has one, too, although I wouldn't call it "small".

  6. #6
    Registered User
    Join Date
    Nov 2006
    Posts
    519
    wxwidgets has a threading lib, too. Also pthread are implemented for linux, win32, mac (if that matches your definition of portable)

  7. #7
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,892
    The lightest would probably be pthreads. It weighs nothing at all on POSIX systems.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  8. #8
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,145
    Note that there is no implementation of pthread on win64 (I couldn't find one at least).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compile Error that i dont understand
    By bobthebullet990 in forum C++ Programming
    Replies: 5
    Last Post: 05-05-2006, 09:19 AM
  2. Replies: 3
    Last Post: 03-04-2005, 01:46 PM
  3. Replies: 6
    Last Post: 03-02-2005, 01:45 AM
  4. Cross Platform Compatible 64Bit And 8Bit Integer
    By DeepBlackMagic in forum C++ Programming
    Replies: 5
    Last Post: 01-14-2005, 03:35 AM
  5. cross platform game programming
    By xddxogm3 in forum Game Programming
    Replies: 13
    Last Post: 08-22-2004, 09:40 AM

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