mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-22 19:54:57 +08:00
Syntax fix
This commit is contained in:
parent
15f01a53a1
commit
dcc73db6a8
@ -711,7 +711,7 @@ Serial::SerialImpl::getDSR ()
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
Serial::SerialImpl::getRI()
|
Serial::SerialImpl::getRI ()
|
||||||
{
|
{
|
||||||
if (is_open_ == false) {
|
if (is_open_ == false) {
|
||||||
throw PortNotOpenedException ("Serial::getRI");
|
throw PortNotOpenedException ("Serial::getRI");
|
||||||
@ -721,7 +721,7 @@ Serial::SerialImpl::getRI()
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
Serial::SerialImpl::getCD()
|
Serial::SerialImpl::getCD ()
|
||||||
{
|
{
|
||||||
if (is_open_ == false) {
|
if (is_open_ == false) {
|
||||||
throw PortNotOpenedException ("Serial::getCD");
|
throw PortNotOpenedException ("Serial::getCD");
|
||||||
@ -731,7 +731,7 @@ Serial::SerialImpl::getCD()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
Serial::SerialImpl::readLock()
|
Serial::SerialImpl::readLock ()
|
||||||
{
|
{
|
||||||
int result = pthread_mutex_lock(&this->read_mutex);
|
int result = pthread_mutex_lock(&this->read_mutex);
|
||||||
if (result) {
|
if (result) {
|
||||||
@ -740,7 +740,7 @@ Serial::SerialImpl::readLock()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
Serial::SerialImpl::readUnlock()
|
Serial::SerialImpl::readUnlock ()
|
||||||
{
|
{
|
||||||
int result = pthread_mutex_unlock(&this->read_mutex);
|
int result = pthread_mutex_unlock(&this->read_mutex);
|
||||||
if (result) {
|
if (result) {
|
||||||
@ -749,7 +749,7 @@ Serial::SerialImpl::readUnlock()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
Serial::SerialImpl::writeLock()
|
Serial::SerialImpl::writeLock ()
|
||||||
{
|
{
|
||||||
int result = pthread_mutex_lock(&this->write_mutex);
|
int result = pthread_mutex_lock(&this->write_mutex);
|
||||||
if (result) {
|
if (result) {
|
||||||
@ -758,7 +758,7 @@ Serial::SerialImpl::writeLock()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
Serial::SerialImpl::writeUnlock()
|
Serial::SerialImpl::writeUnlock ()
|
||||||
{
|
{
|
||||||
int result = pthread_mutex_unlock(&this->write_mutex);
|
int result = pthread_mutex_unlock(&this->write_mutex);
|
||||||
if (result) {
|
if (result) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user