?
Solved

Events and signal handlers.

Posted on 2003-04-01
2
Medium Priority
?
291 Views
Last Modified: 2010-04-21
Hi,

I have got a signal handler which wakes up when a timer alarms (SIGALRAM), and needs to tell other thread to wake up. I started with using conditional variables, but they do not work with signal handlers.
Do you have suggestions? Would semaphore work?

Thanks a lot,
Liron.
0
Comment
Question by:slironm
2 Comments
 
LVL 2

Accepted Solution

by:
bkrahmer earned 80 total points
ID: 8251618
I ran into exactly the same problem.  What I ended up doing was writing a c++ class that acted like a Windows event object, but underneath the hood, it used pipes.  Pipes are a good solution, because they are extremely efficient to wait on or just check if the 'signal' has been sent.

cheers,
brian
0
 

Author Comment

by:slironm
ID: 8252601
Thanks a lot brian!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Kernel Data Recovery is a renowned Data Recovery solution provider which offers wide range of softwares for both enterprise and home users with its cost-effective solutions. Let's have a quick overview of the journey and data recovery tools range he…
How to fix display issue, screen flickering issue when I plug in power cord to the machine. Before I start explaining the solution lets check out once the issue how it looks like after I connect the power cord. most of you also have faced this…

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question