diff options
| author | 2014-09-11 14:49:09 -0700 | |
|---|---|---|
| committer | 2014-09-11 14:49:09 -0700 | |
| commit | c0df68bb804d8fc4bc75aa077232ea74f0d53b28 (patch) | |
| tree | 9415957e6385e59107b6ff9b151ce291c757736e /libs/ui/FramebufferNativeWindow.cpp | |
| parent | 7d587c31d5c9a2f76f69073036f521dc75045656 (diff) | |
Work around C11 const atomic restrictions.
Cast away the const qualifier in BBinder::findObject. C11, unlike C++11,
does not allow loads from const atomics. This is widely regarded as
a bug (see WG14 DR 459). This is a hack to work around it until it's
officially fixed in the spec.
load_const_atomic was adapted from commit
1e8587a479fd8b1ce9b594298a93f517816e8f15
I don't think we want to dignify this by putting it into a header file.
Bug:17067219
Change-Id: Icbfcbda2722e6f80d2bb065a0bb3ec7634bcacb2
Diffstat (limited to 'libs/ui/FramebufferNativeWindow.cpp')
0 files changed, 0 insertions, 0 deletions