Thread: pthread_cleanup_push/pop for windows ( CE or ordinary )

  1. #1
    Alessio Stella
    Join Date
    May 2008
    Location
    Italy, Bologna
    Posts
    251

    pthread_cleanup_push/pop for windows ( CE or ordinary )

    Hi
    what sort of calls are similar to pthread_cleanup_push/pop under windows (specifically in CE I need them)??

  2. #2
    Alessio Stella
    Join Date
    May 2008
    Location
    Italy, Bologna
    Posts
    251
    and actually to be combined with CreateThread()

    Code:
    HANDLE CreateThread(
      LPSECURITY_ATTRIBUTES lpThreadAttributes, 
      DWORD dwStackSize, 
      LPTHREAD_START_ROUTINE lpStartAddress, 
      LPVOID lpParameter, 
      DWORD dwCreationFlags, 
      LPDWORD lpThreadId
    );
    (the program now uses this (CreateThread) and i have to minimize the modifications for my purpouses..

  3. #3
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    There is nothing similar built in. You will have to do what's needed yourself.

    Do you need pthread-cancellation semantics? Or you do you just want to run some functions when the thread exits?

    If the latter and it's C++, just use objects with destructors.

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C Compiler For Windows CE
    By nathanpc in forum C Programming
    Replies: 1
    Last Post: 07-12-2009, 07:38 AM
  2. God
    By datainjector in forum A Brief History of Cprogramming.com
    Replies: 746
    Last Post: 12-22-2002, 12:01 PM
  3. Windows CE
    By civix in forum A Brief History of Cprogramming.com
    Replies: 10
    Last Post: 08-04-2002, 01:21 AM
  4. Windows CE
    By Shiro in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 03-11-2002, 01:14 PM
  5. CE and VB... oh the horror..
    By ober in forum Windows Programming
    Replies: 2
    Last Post: 08-30-2001, 07:20 PM