POSIX based Timer class, occasional crash
usenet_at_sta.samsung.com
Date: 09/28/05
- Next message: Pascal Bourguignon: "Re: Executing Unix commands on a remote host using C"
- Previous message: Bader: "Executing Unix commands on a remote host using C"
- Next in thread: Maxim Yegorushkin: "Re: POSIX based Timer class, occasional crash"
- Reply: Maxim Yegorushkin: "Re: POSIX based Timer class, occasional crash"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 28 Sep 2005 12:15:03 -0700
Here's what I've got.
I've got a Timer class and a TimerClient base class. The Timer class
maintains a mapping between the timer-id and information such as the
number of times to fire the timer, timer attributes, a pointer to the
client, and a pointer to a client specific "payload" that gets
delivered to the client with the timeout message. The Timer class is a
singleton, and it's a wrapper for POSIX timer functions
(timer_create, timer_settime, timer_delete). It's access to its
internal map is controlled via a pthread_mutex.
Every once in a while an application that is using the timer crashes,
and I am unable to figure out what might be happening. Any insight
will be appreciated.
I have posted the source to comp.sources.d
Thanks,
Gus
- Next message: Pascal Bourguignon: "Re: Executing Unix commands on a remote host using C"
- Previous message: Bader: "Executing Unix commands on a remote host using C"
- Next in thread: Maxim Yegorushkin: "Re: POSIX based Timer class, occasional crash"
- Reply: Maxim Yegorushkin: "Re: POSIX based Timer class, occasional crash"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|