K2hash::setTransactionThreadPool
Sets the number of transaction workers
Description
public static bool K2hash::setTransactionThreadPool ( int $count )
Sets the number of transaction workers.
Parameters
- count
Specifies the number of transaction workers.
Return Values
Returns true on success or false on failure.
Examples
- Example 1 - Specifies the number of transaction workers
<?php
var_dump(K2hash::settransactionThreadPool(1));
var_dump(K2hash::gettransactionThreadPool());
?>
The above example will output:
bool(true)
int(1)
See Also
- K2hash::getTransactionThreadPool - Gets the number of transaction workers