» tagged pages
» logout

(Feed found, click Add Page to syndicate.) Error finding feed, please try again » Find feed title

A Blog Page allows you to add entries, for news or other time sensitive postings

(Login required to save to your tagged pages.)
(or Cancel)

Make further edits, (or Cancel)

(Login required to save to your tagged pages.)
(or Cancel)

(Editing anonymously: to be credited for your changes, login or register a new account)

Change Page Permissions? Changing these permissions will adjust who can modify this page.

Anonymous (change)
(change)
(or Cancel)
Upload an image from your computer:
or Copy an image from a URL:
or Erase the current icon:
Icon Preview:

or Cancel

Erase threads? The contents of threads page and all pages directly attached to threads will be erased.

or Cancel

(Editing anonymously: to be credited for your changes, login or register a new account)

other page actions:
threads

threads

Tags Applied to threads

No one has tagged this page.

threads Wiki Pages

What is threads? Edit this page and describe it here.

sorted by: recent | see : popular
Content Tagged threads

Scala Actors

Threadless and (likely) Scalable Scala Actors

scala: del.icio.us/tag/scala

Programming in Scala

This book is the authoritative tutorial on the Scala programming language, co-written by the language's designer, Martin Odersky. While mostly complete, the book is still a work in progress. This early access program will allow you to learn about Scala from the source and provide helpful feedback to the authors that will make the book even better.

scala: del.icio.us/tag/scala

A never-ending struggle…

For the past 2 weeks, I’ve been wrestling with a fix for task 208487. At first glance, it seems pretty far-fetched (at least it did to me): an application that has 2 billion running timers and runs out of timer ids. But then I went and looked at the code (that I wrote!) and the real problem slapped me in the face: any application can only ever start 2 billion timers in total (which is different from having 2 billion concurrent timers). We never recycle timer ids. That means that the following code will quit working after 24.85 days. If we change the timeout to be zero instead, the runtime is reduced to hours instead of days.

class Object : public QObject
{
Q_OBJECT
public:
    Object() : QObject() { QTimer::singleShot(1, this, SLOT(timeout())); }
public slots:
    void timeout() { QTimer::singleShot(1, this, SLOT(timeout())); }
};

After quickly rejecting the question “Should I fix this?” (of course I should!), I promptly got my hands dirty looking for a solution. Fixing this proved to be harder than I originally anticipated…

(more…)

Trolltech: Trolltech Labs Blogs

Page 1 | Next >>
Username:
Password:
(or Cancel)