event based timer

maarten van damme maartenvd1994 at gmail.com
Wed Jul 20 00:34:39 PDT 2011


Thanks but it seems way more complex then I need, I tried writing my own but
I get an acces violation error. here is my try :
http://dl.dropbox.com/u/15024434/Timer.d . Can someone spot the error? keep
in mind I don't really understand the threading model and pointers.


2011/7/19 Piotr Szturmaj <bncrbme at jadamspam.pl>

> maarten van damme wrote:
>
>> Hi everyone,
>> for getting to know d a little bit I'm writing a simple pingpong game
>> using gtk.
>> for it to work I need to be able to do something every 0.1 seconds so I
>> was wondering if there was some kind of timer in the phobos library.
>> I've looked everywhere but couldn't find one. Is it missing and do i
>> have to write my own or have I overlooked it?
>>
>> maarten
>>
>
> There is no callback timer in Phobos. But here's my implementation of timer
> wheel I used in one of my projects: http://pastebin.com/dRRZtPVW. Feel
> free to use it if you want.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20110720/0e29b9d6/attachment.html>


More information about the Digitalmars-d mailing list