mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 02:18:04 +01:00
Remove trailing whitespace (#3668)
This commit is contained in:
@@ -47,16 +47,16 @@ public:
|
||||
_value()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
~TLSSlot()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
C& value()
|
||||
{
|
||||
return _value;
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
TLSSlot(const TLSSlot&);
|
||||
TLSSlot& operator = (const TLSSlot&);
|
||||
@@ -73,24 +73,24 @@ class Foundation_API ThreadLocalStorage
|
||||
public:
|
||||
ThreadLocalStorage();
|
||||
/// Creates the TLS.
|
||||
|
||||
|
||||
~ThreadLocalStorage();
|
||||
/// Deletes the TLS.
|
||||
|
||||
TLSAbstractSlot*& get(const void* key);
|
||||
/// Returns the slot for the given key.
|
||||
|
||||
|
||||
static ThreadLocalStorage& current();
|
||||
/// Returns the TLS object for the current thread
|
||||
/// (which may also be the main thread).
|
||||
|
||||
|
||||
static void clear();
|
||||
/// Clears the current thread's TLS object.
|
||||
/// Does nothing in the main thread.
|
||||
|
||||
|
||||
private:
|
||||
typedef std::map<const void*, TLSAbstractSlot*> TLSMap;
|
||||
|
||||
|
||||
TLSMap _map;
|
||||
|
||||
friend class Thread;
|
||||
@@ -118,16 +118,16 @@ public:
|
||||
ThreadLocal()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
~ThreadLocal()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
C* operator -> ()
|
||||
{
|
||||
return &get();
|
||||
}
|
||||
|
||||
|
||||
C& operator * ()
|
||||
/// "Dereferences" the smart pointer and returns a reference
|
||||
/// to the underlying data object. The reference can be used
|
||||
@@ -144,7 +144,7 @@ public:
|
||||
if (!p) p = new Slot;
|
||||
return static_cast<Slot*>(p)->value();
|
||||
}
|
||||
|
||||
|
||||
private:
|
||||
ThreadLocal(const ThreadLocal&);
|
||||
ThreadLocal& operator = (const ThreadLocal&);
|
||||
|
||||
Reference in New Issue
Block a user