Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost.thread] function call and functor in thread creation: performance
From: Igor R (boost.lists_at_[hidden])
Date: 2011-01-22 14:38:27


> Does anyone know the performance difference between creating a new boost thread via
> ordinary function vs. doing that via a functor?

As Steven already mentioned, thread launching is so "heavy" procedure,
that it's really doesn't matter if you pass a function pointer or
boost::function.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net