Thread: pthread object

  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    21

    pthread object

    I have attempted to create a simple object that represents a thread and wraps around the pthread API to execute itself. I'm having a bit of trouble though.

    If I inherit the object and reimplement the run() method and sleep() - it appears that a thread has not actually been created - as the code following thread.exec() is not executed until the sleep() has completed.

    [edit:]
    Ok - Nevermind - I was joining and blocking - silly mistake.
    Last edited by scarecrow; 05-05-2008 at 10:11 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. using this as synchronization object
    By George2 in forum C# Programming
    Replies: 0
    Last Post: 03-22-2008, 07:49 AM
  2. synchronization object choosing
    By George2 in forum C# Programming
    Replies: 0
    Last Post: 03-22-2008, 04:33 AM
  3. circular doubly linked list help
    By gunnerz in forum C++ Programming
    Replies: 5
    Last Post: 04-28-2007, 08:38 PM
  4. Question on l-values.
    By Hulag in forum C++ Programming
    Replies: 6
    Last Post: 10-13-2005, 04:33 PM
  5. A question about constructors...
    By Wolve in forum C++ Programming
    Replies: 9
    Last Post: 05-04-2005, 04:24 PM