'L{IReactorThreads.callFromThread} can be used to schedule a large
number of calls in the reactor thread.'

def test_lotsOfThreadsAreScheduledCorrectly(self):

    def addAndMaybeFinish():
        self.counter += 1
        if (self.counter == 100):
            self.deferred.callback(True)
    for i in range(100):
        self.schedule(addAndMaybeFinish)
    return self.deferred
