Adds the initialization of the attribute self.threadpools