You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
565 B
29 lines
565 B
12 years ago
|
<?php
|
||
|
|
||
|
namespace yii\mutex\db\mssql;
|
||
|
|
||
|
use Yii;
|
||
|
use yii\base\InvalidConfigException;
|
||
|
|
||
|
class Mutex extends \yii\mutex\db\Mutex
|
||
|
{
|
||
|
public function init()
|
||
|
{
|
||
|
parent::init();
|
||
|
$driverName = $this->db->driverName;
|
||
|
if ($driverName !== 'sqlsrv' && $driverName !== 'dblib' && $driverName !== 'mssql') {
|
||
|
throw new InvalidConfigException('');
|
||
|
}
|
||
|
}
|
||
|
|
||
|
protected function acquire($name, $timeout = 0)
|
||
|
{
|
||
|
// http://msdn.microsoft.com/en-us/library/ms189823.aspx
|
||
|
}
|
||
|
|
||
|
protected function release($name)
|
||
|
{
|
||
|
// http://msdn.microsoft.com/en-us/library/ms178602.aspx
|
||
|
}
|
||
|
}
|