Should I bother porting Win32 threading examples?

Andrej Mitrovic andrej.mitrovich at gmail.com
Mon Jun 13 19:43:13 PDT 2011


I'm in the process of porting WinAPI examples from Petzold's Windows
Programming book to D. In the book there's a chapter on
multithreading. It covers thread creation, messaging queues, critical
sections, TLS (heh..), and event signaling.

Since we pretty much have all of this in D already (+ its
multiplatform), I'm thinking it might be a good idea to skip
translating this chapter's samples. I don't want to encourage newbies
to use WinAPI threading functions when it's completely unnecessary to
do so.

I *could* however demonstrate how it's done in D instead, and put some
documentation in the modules on how it works. So while it won't follow
what the book says, at least it's there instead of being completely
left out.

Whaddya think, Windoze users?


More information about the Digitalmars-d-learn mailing list