Deleted Added
full compact
ThreadLocal.h (249423) ThreadLocal.h (280031)
1//===- llvm/Support/ThreadLocal.h - Thread Local Data ------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 22 unchanged lines hidden (view full) ---

31 union {
32 char data[sizeof(ThreadLocalDataTy)];
33 ThreadLocalDataTy align_data;
34 };
35 public:
36 ThreadLocalImpl();
37 virtual ~ThreadLocalImpl();
38 void setInstance(const void* d);
1//===- llvm/Support/ThreadLocal.h - Thread Local Data ------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 22 unchanged lines hidden (view full) ---

31 union {
32 char data[sizeof(ThreadLocalDataTy)];
33 ThreadLocalDataTy align_data;
34 };
35 public:
36 ThreadLocalImpl();
37 virtual ~ThreadLocalImpl();
38 void setInstance(const void* d);
39 const void* getInstance();
39 void *getInstance();
40 void removeInstance();
41 };
42
43 /// ThreadLocal - A class used to abstract thread-local storage. It holds,
44 /// for each thread, a pointer a single object of type T.
45 template<class T>
46 class ThreadLocal : public ThreadLocalImpl {
47 public:

--- 16 unchanged lines hidden ---
40 void removeInstance();
41 };
42
43 /// ThreadLocal - A class used to abstract thread-local storage. It holds,
44 /// for each thread, a pointer a single object of type T.
45 template<class T>
46 class ThreadLocal : public ThreadLocalImpl {
47 public:

--- 16 unchanged lines hidden ---