Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Joseph_R_
Beginner
72 Views

List of interrupss

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      

 

0 Kudos
2 Replies
jimdempseyatthecove
Black Belt
72 Views

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_function...

Jim Dempsey

SergeyKostrov
Valued Contributor II
72 Views

>>...I am wondering if the is a int instruction number that would suspend or resume a thread... There is no a special instruction and you need to use an OS API to do threads management.
Reply