Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jun 17th, 2018
109
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C++
0.15 KB
| None
|
0
0
raw
download
clone
embed
print
report
mutex m
;
volatile
T
*
x
;
// atomic<T*> in C++11
// ...
if
(
x
==
0
)
{
lock_guard
<
mutex
>
_
(
m
)
;
if
(
x
==
0
)
x
=
new
T
(
)
;
}
// read x
// ...
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 💰
GetText | 20 min ago | 0.38 KB
Untitled
Bash | 24 min ago | 0.06 KB
Untitled
JavaScript | 29 min ago | 0.79 KB
Untitled
Python | 48 min ago | 3.80 KB
config.yaml
YAML | 52 min ago | 11.75 KB
How is FXOpen Expanding Its Share CFD Offerin...
PHP | 56 min ago | 2.95 KB
Exim Test Email Script
Bash | 56 min ago | 0.75 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 1 hour ago | 0.39 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!