Alphadan
September 13th, 2010, 07:16 PM
Hi, everyone
I'm looking for apis to support multithreading (something that might help me to debug or make the job lil easier).
my current problem is that i have a mulithreaded application (socket oriented: file transfer), made it especifically to support multi-filetransfer simultaneously.
The reciver part is working as expected but the sender(not 100% sure where is the trouble) is working as it was single threaded.
I think is executing the send procedure is made in a single connection thread or even in the main thread.
basicaly im looking for api or somethign that would allow me to know what threadID executes the current portion of the code. or at least a way to debug this problem.
Also how am i able to force a procedure to be executed in a specific thread, is there a way?
Thx in advance.
I'm looking for apis to support multithreading (something that might help me to debug or make the job lil easier).
my current problem is that i have a mulithreaded application (socket oriented: file transfer), made it especifically to support multi-filetransfer simultaneously.
The reciver part is working as expected but the sender(not 100% sure where is the trouble) is working as it was single threaded.
I think is executing the send procedure is made in a single connection thread or even in the main thread.
basicaly im looking for api or somethign that would allow me to know what threadID executes the current portion of the code. or at least a way to debug this problem.
Also how am i able to force a procedure to be executed in a specific thread, is there a way?
Thx in advance.