On Jul 24, 2008, at 9:51 AM, Antti Kantee wrote:
Unification seconded. And while in there, there should be no differencebetween "single-threaded without pthread" and "single-threaded with pthread" like there currently is.
Agreed. Because if you have an app that loads a plugin, you have no idea if it is going to use threads or not, even if your app is not multi-threaded.
On UP systems, the locking primitives are light-weight enough that the overhead doesn't matter, and MP systems could possibly take short-cuts internally if no threads other than the main thread exist.
-- thorpej