Loading [MathJax]/extensions/tex2jax.js
LSSTApplications
18.1.0
LSSTDataManagementBasePackage
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Typedefs
a
b
c
d
e
f
i
k
m
p
r
s
t
v
w
Enumerations
+
Enumerator
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
+
Classes
Class List
Class Hierarchy
+
Class Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
+
Enumerations
a
b
c
d
e
f
i
k
l
m
p
s
t
v
w
+
Enumerator
a
b
c
d
e
f
g
i
j
l
m
n
o
p
r
s
t
u
v
w
x
y
Properties
+
Related Functions
a
b
c
d
e
f
i
k
m
o
p
s
t
+
Files
File List
+
File Members
+
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
+
Functions
d
l
p
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
+
Macros
_
a
b
c
d
f
i
k
l
m
n
p
r
s
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
lsst
log
detail
Functions
lsst::log::detail Namespace Reference
Functions
unsigned
lwpID
()
Function Documentation
◆
lwpID()
unsigned lsst::log::detail::lwpID
(
)
Definition at line
40
of file
lwpID.cc
.
40
{
41
42
#if defined(__linux__)
43
44
// On Linux have to do syscall
45
auto
lwp = syscall(SYS_gettid);
46
47
#elif defined(__APPLE__)
48
49
// OSX has a special Pthreads function to find out PID
50
auto
lwp = pthread_mach_thread_np(pthread_self());
51
52
#else
53
54
// On all other system just generate incremental number and call it LWP
55
static
std::atomic<unsigned>
threadNum(0);
56
thread_local
static
auto
lwp = ++threadNum;
57
58
#endif
59
60
return
static_cast<
unsigned
>
(lwp);
61
}
std::atomic
Generated on Thu Aug 8 2019 20:21:13 for LSSTApplications by
1.8.13