Tagged Questions
0
votes
2answers
20 views
Win32 Uderstanding semaphore
I'm new to Multithread in Win32. And I have an assignment with Semaphore. But I cannot understand this.
Assume that we have 20 tasks (each task is the same with other tasks). We use semaphore then ...
0
votes
3answers
38 views
win32: waitable event object for GUI messages?
Is it possible to create an event object that becomes signalled when GUI message(s) is/are available, like one can create event objects that signal the presence of data on a socket for instance? The ...
0
votes
1answer
33 views
Progress bar in multiple dialogs with thread
My application has to keep track of time and alert user at different stages to allow or not allow certain actions. Because the user will be waiting, I want to show a progress to show wait time. For ...
0
votes
1answer
46 views
User-defined message not working
Brief summary of what i am trying to accomplish - I am 'attempting' to write code that will allow an operator to test 4 devices simultaneously using winapi threads. The code for the testing of the ...
0
votes
2answers
44 views
How to divert a thread to post messages to a new window
I have a thread that I pass an HWND of a window where it post messages and updates a progress bar. The user can however go to another window (modal) where I would also like to show the progress of ...
0
votes
1answer
44 views
How to notify outside thread of main thread state without using global variables?
Say i have main thread and it is running my win32 procedure and a few worker threads to carry out functions that are clicked on by the user.
Lets say there is a change in the main function (I want 1 ...
1
vote
1answer
36 views
NetServerEnum block when thread is terminated externaly
(Working in Win32 api , in C environment with VS2010)
I have a two thread app. The first thread forks the second and waits for a given interval - 'TIMEOUT', and then calls TerminateThread() on it.
...
1
vote
1answer
95 views
Equivalent of WAIT_ABANDONED in C++11 threading
I'm rewriting code that uses WinAPI for threading to use the new standard threading libraries.
I was wondering what would be the equivalent way in C++11 to notice that a mutex was abandoned or lost.
...
0
votes
2answers
73 views
Win32 API deadlocks while using different threads
I am experience deadlock while trying to use WIN32 API from additional thread. The additional thread is needed in my application to improve Frame Rate. It actually helps, however, I get deadlocks in ...
0
votes
0answers
48 views
Main UI processing thread messages
I am writing a win32 application which allows an operator to perform testing on 4 devices at a time. So i have 4 threads running simultaneously, this works as intended (though could be more ...
0
votes
0answers
21 views
Win32 - Certain threads seem to dominate
I have several threads running a function. However, about 2-3 minutes in some threads start "dominating" others, meaning the other threads seem to have gone suspended or terminated. For example, when ...
1
vote
3answers
49 views
x number of threads sending data to Server for displaying output on GUI
I have developed a single server/multiple client TCP Application.
The client consists of x number of threads each thread doing processing on its own data and then sending the data over TCP socket to ...
3
votes
2answers
68 views
How do I use WaitForMultipleObjects to balance competing work?
I'm using WaitForMultipleObjects in an IPC situation, where I have one process writing data to either or both of two memory mapped files and another process that picks up that data as it's updated. ...
1
vote
2answers
64 views
Does having lots of threads WaitingForSingleObject() will worsen performance?
I have a code in C using WIN32 API.
in my program, the main Thread creates a lot of events (Using CreateEvent), and then creates a Thread (Using CreateThread) for each Event that WaitForSingleObject ...
0
votes
1answer
70 views
sending messages to the main window in a thread in win32
I am relatively new to working with threads in Win32 api and have reached a problem that i am unable to work out.
Heres my problem, i have 4 threads (they work as intended) that allow the operator to ...