Displaying 6 results from an estimated 6 matches for "interlockedcompareexchange".
2009 Dec 07
2
[LLVMdev] Trunk build failure
On the trunk I am getting some errors which are killing the rest of the build:
2>Atomic.cpp(49) : error C2664: 'InterlockedCompareExchange' : cannot
convert parameter 1 from 'volatile llvm::sys::cas_flag *' to 'volatile
LONG *'
2> Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
2>Atomic.cpp(62) : error C2664: 'InterlockedIncrement' : can...
2017 Nov 23
2
question about xray tls data initialization
...s32 xchg,
> memory_order mo)
> is missed for MSVC , I take atomic_uint32_t implementation
>
>
> This is in compiler-rt/lib/sanitizer_common/... right?
yes, sanitizer_atomic_msvc.h didn't provide this override. according
to msdn of interlockedcompareexchange, implementation for
atomic_uint32_t should also works for atomic_sint32_t. this is a
copy/paste but I think its short enough. any better suggestion ?
>
> FunctionRecord pack , __attribute__((packed)) => #pragma
> pack(push,1), msvc also requires bitfields to be same type to pack
>...
2012 Feb 28
0
[LLVMdev] [patch] atomic functions on darwin
...c.cmake (revision 151623)
+++ cmake/modules/CheckAtomic.cmake (working copy)
@@ -6,6 +6,9 @@
#ifdef _MSC_VER
#include <windows.h>
#endif
+#ifdef __APPLE__
+#include <libkern/OSAtomic.h>
+#endif
int main() {
#ifdef _MSC_VER
volatile LONG val = 1;
@@ -13,6 +16,12 @@
InterlockedCompareExchange(&val, 0, 1);
InterlockedIncrement(&val);
InterlockedDecrement(&val);
+#elif defined(__APPLE__)
+ int32_t val = 1;
+ OSMemoryBarrier();
+ OSAtomicCompareAndSwap32(0, 1, &val);
+ OSAtomicIncrement32(&val);
+ OSAtomicDecrement32(&va...
2017 Nov 21
2
question about xray tls data initialization
with some dirty hack , I've made xray runtime 'built' on windows ,
but unfortunately I haven't enough knowledge about linker and the
runtime, and finally built executable didn't run. I'd like to share
my changes here , hopes somebody help me to make it run on windows.
in AsmPrinter, copy/paster xray for coff target
InstMap =
2019 Oct 18
0
Wine release 4.18
...requiring several api-ms-win-crt-private-l1-1-0.dll._o_* API functions (mlgen, winmdidl)
47395 Wolf RPG Editor hangs on exit
47615 _putws outputs NULs, other wchar.h functions don't
47676 Logos Bible Softare no longer loads due to crash
47751 x64dbg crashes in get_current_context / InterlockedCompareExchange
47755 Installation of Atmel Studio 7 crashes with a Program Error
47764 World of Warcraft - Keyboard troubles
47782 Segmentation fault and exceptions using ManagementClass
47813 Itch.io: Warning or error when launching a game (GetFileInformationByHandleEx for FileAttributeTagInfo unimpl...
2015 Mar 06
0
Wine release 1.7.38
...t.
include: Fix definition of SECTION_BASIC_INFORMATION and SECTION_IMAGE_INFORMATION.
ntdll/tests: Add tests for NtQueryLicenseKey.
ntdll/tests: Add tests for TpSimpleTryPost function.
ddraw: Remove unused code for ChangeUniquenessValue.
ole32: Fix an invalid usage of InterlockedCompareExchange.
winebuild: Conditionally use different code for restoring the context structure.
winecfg: Add library override instead of closing winecfg when pressing Enter.
ntdll: Assert when trying to replace an exiting file descriptor in fd_cache.
ws2_32: Avoid kernel32 functions in sy...