IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 13, 2008, 5:22:13 PM (18 years ago)
Author:
Paul Price
Message:

Renamed psThreadTaskDelete to psThreadTaskRemove to maintain consistency with psHash, psMetadata, etc. I'm working on getting some support for thread-specific data. I had a scheme, but it doesn't work (I assumed that a pthread_t was an integer); need to rethink. In the meantime, it's #if-ed out.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psThread.h

    r19022 r19057  
    44 *
    55 *  @author EAM, IFA
    6  *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    7  *  @date $Date: 2008-08-12 03:28:37 $
     6 *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     7 *  @date $Date: 2008-08-14 03:22:13 $
    88 *
    99 *  Copyright 2004-2005 Insitute for Astronomy, University of Hawaii
     
    1212#ifndef PS_THREAD_H
    1313#define PS_THREAD_H
     14
     15#include <pthread.h>
     16#include "psString.h"
     17#include "psArray.h"
    1418
    1519/// @addtogroup SysUtils System Utilities
     
    8791
    8892/// Remove a task from the list
    89 bool psThreadTaskDelete(const char *type // Task type to remove
     93bool psThreadTaskRemove(const char *type // Task type to remove
    9094    );
    9195
     
    111115bool psThreadPoolFinalize(void);
    112116
     117
     118/// Add thread-specific data
     119///
     120/// The provided pointer is added to a thread-specific hash under the provided name.
     121bool psThreadDataAdd(const char *name,  // Name of data
     122                     psPtr ptr          // Data to add
     123    );
     124
     125/// Lookup thread-specific data
     126///
     127/// The thread-specific hash is interrogated using the provided name.
     128void *psThreadDataLookup(const char *name // Name of data
     129    );
     130
     131/// Remove thread-specific data
     132///
     133/// The thread-specific hash has the data associated with the provided name deleted.
     134bool psThreadDataRemove(const char *name // Name of data
     135    );
     136
     137
    113138/// @}
    114139#endif /* PS_THREAD_H */
Note: See TracChangeset for help on using the changeset viewer.