diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2008-01-17 19:00:07 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2008-01-17 19:00:07 +0000 |
commit | 831ab8066e58fc1e60b05c0062579f9c4243c1b7 (patch) | |
tree | 009ba1ef52d774bf4528c7c340700fb9915d38fd /ACE/ace/POSIX_Proactor.cpp | |
parent | 5f3c0f91d127206784b6078e68588a5e6c5eef80 (diff) | |
download | ATCD-831ab8066e58fc1e60b05c0062579f9c4243c1b7.tar.gz |
Thu Jan 17 18:57:12 UTC 2008 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ACE/ace/POSIX_Proactor.cpp')
-rw-r--r-- | ACE/ace/POSIX_Proactor.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/ACE/ace/POSIX_Proactor.cpp b/ACE/ace/POSIX_Proactor.cpp index 22ccf3aed15..1c2c271efb9 100644 --- a/ACE/ace/POSIX_Proactor.cpp +++ b/ACE/ace/POSIX_Proactor.cpp @@ -1422,7 +1422,7 @@ ACE_POSIX_AIOCB_Proactor::start_aio_i (ACE_POSIX_Asynch_Result *result) ACE_TRACE ("ACE_POSIX_AIOCB_Proactor::start_aio_i"); int ret_val; - const ACE_TCHAR *ptype; + const ACE_TCHAR *ptype = 0; // Start IO @@ -1443,7 +1443,9 @@ ACE_POSIX_AIOCB_Proactor::start_aio_i (ACE_POSIX_Asynch_Result *result) } if (ret_val == 0) - this->num_started_aio_++; + { + ++this->num_started_aio_; + } else // if (ret_val == -1) { if (errno == EAGAIN || errno == ENOMEM) //Ok, it will be deferred AIO @@ -1510,9 +1512,9 @@ ACE_POSIX_AIOCB_Proactor::start_deferred_aio () //AL notify user result_list_[i] = 0; - aiocb_list_cur_size_--; + --aiocb_list_cur_size_; - num_deferred_aiocb_ --; + --num_deferred_aiocb_; result->set_error (errno); result->set_bytes_transferred (0); @@ -1555,7 +1557,7 @@ ACE_POSIX_AIOCB_Proactor::cancel_aio (ACE_HANDLE handle) if (this->result_list_[ai]->aio_fildes != handle) // Not ours continue; - num_total++; + ++num_total; ACE_POSIX_Asynch_Result *asynch_result = this->result_list_[ai]; |