- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have a C console programs running under Windows 10. I have compiled it with icl. I am looking into writing __asm{ code to serialize theard processing
I am aware that windows offers event API's SetEvent CreateEvent WaitForSingleObject. since I am coding in asm I am wondering if the is a int instruction number that would suspend or resume a thread, More so where code I find a complete list of int's my processor is i7-6900k
Thanks
- Tags:
- Intel® Advanced Vector Extensions (Intel® AVX)
- Intel® Streaming SIMD Extensions
- Parallel Computing
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The easiest route to take is to write a C wrapper function that makes the Windows API call. Then call that from your ASM code.
You can serialize you threads using standard functions from C/C++. Look at the Interlocked... functions in MSDN.
https://msdn.microsoft.com/en-us/library/windows/desktop/ms686360(v=vs.85).aspx#interlocked_functions
Jim Dempsey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page