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