NS_ADDREF(pool);
NS_NewThreadPool(nsIThreadPool* *result,                 PRUint32 minThreads, PRUint32 maxThreads,                 PRUint32 stackSize,                 PRThreadPriority priority,                 PRThreadScope scope){    nsresult rv;    nsThreadPool* pool = new nsThreadPool(minThreads, maxThreads);    if (pool == nsnull)        return NS_ERROR_OUT_OF_MEMORY;    rv = pool->Init(stackSize, priority, scope);    if (NS_FAILED(rv)) {        delete pool;        return rv;    }        NS_ADDREF(pool);    *result = pool;    return NS_OK;}