source: Sophya/trunk/SophyaExt/JThreadsC++/JTCSrc/JTC/TSS.h@ 1016

Last change on this file since 1016 was 1016, checked in by ansari, 25 years ago

Creation du module JThreadsC++, importation du code des classes
de Thread a la Java de Object Oriented Concepts Inc - Reza 19/5/2000

File size: 1017 bytes
Line 
1// **********************************************************************
2//
3// Copyright (c) 2000
4// Object Oriented Concepts, Inc.
5// Billerica, MA, USA
6//
7// All Rights Reserved
8//
9// **********************************************************************
10
11#ifndef JTC_TSS_H
12#define JTC_TSS_H
13
14#include <JTC/Types.h>
15
16class JTCTSS
17{
18public:
19
20 //
21 // Allocate a new Thread Specific Key
22 //
23 static JTCThreadKey allocate();
24
25 //
26 // Allocate a new Thread Specific Key and a cleanup function.
27 // When a thread is destroyed this cleanup function will be
28 // called.
29 //
30 static JTCThreadKey allocate(void (*)(void*));
31
32 //
33 // Release a Thread Specific Key
34 //
35 static void release(JTCThreadKey key);
36
37 //
38 // Get the per-thread data associated with the Thread Specific Key
39 //
40 static void* get(JTCThreadKey key);
41
42 //
43 // Set the per-thread data associated with the Thread Specific Key
44 //
45 static void set(JTCThreadKey key, void* value);
46};
47
48#endif
Note: See TracBrowser for help on using the repository browser.