Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FXAutoThreadStorageKey.h
1 /********************************************************************************
2 * *
3 * T h r e a d - L o c a l S t o r a g e C l a s s *
4 * *
5 *********************************************************************************
6 * Copyright (C) 2004,2024 by Jeroen van der Zijp. All Rights Reserved. *
7 *********************************************************************************
8 * This library is free software; you can redistribute it and/or modify *
9 * it under the terms of the GNU Lesser General Public License as published by *
10 * the Free Software Foundation; either version 3 of the License, or *
11 * (at your option) any later version. *
12 * *
13 * This library is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16 * GNU Lesser General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU Lesser General Public License *
19 * along with this program. If not, see <http://www.gnu.org/licenses/> *
20 ********************************************************************************/
21 #ifndef FXAUTOTHREADSTORAGEKEY_H
22 #define FXAUTOTHREADSTORAGEKEY_H
23 
24 
25 namespace FX {
26 
27 
41 private:
42  FXThreadStorageKey value;
43 private:
46 public:
47 
50 
52  operator FXThreadStorageKey() const { return value; }
53 
55  void set(FXptr ptr) const;
56 
58  FXptr get() const;
59 
62  };
63 
64 }
65 
66 #endif
67 
Definition: FX4Splitter.h:28
Automatically generated thread-local storage key.
Definition: FXAutoThreadStorageKey.h:40

Copyright © 1997-2022 Jeroen van der Zijp