|
17 | 17 | #endif /* ACE_LACKS_PRAGMA_ONCE */ |
18 | 18 |
|
19 | 19 | #include "ace/Notification_Strategy.h" |
20 | | -#include "ace/Truncate.h" |
21 | 20 | #include "ace/Condition_Attributes.h" |
22 | 21 |
|
23 | 22 | #if defined (ACE_HAS_MONITOR_POINTS) && (ACE_HAS_MONITOR_POINTS == 1) |
@@ -1324,7 +1323,7 @@ ACE_Message_Queue<ACE_SYNCH_USE, TIME_POLICY>::enqueue_head_i (ACE_Message_Block |
1324 | 1323 | if (this->signal_dequeue_waiters () == -1) |
1325 | 1324 | return -1; |
1326 | 1325 | else |
1327 | | - return ACE_Utils::truncate_cast<int> (this->cur_count_); |
| 1326 | + return static_cast<int> (this->cur_count_); |
1328 | 1327 | } |
1329 | 1328 |
|
1330 | 1329 | // Actually put the node at its proper position relative to its |
@@ -1515,7 +1514,7 @@ ACE_Message_Queue<ACE_SYNCH_USE, TIME_POLICY>::dequeue_head_i (ACE_Message_Block |
1515 | 1514 | && this->signal_enqueue_waiters () == -1) |
1516 | 1515 | return -1; |
1517 | 1516 | else |
1518 | | - return ACE_Utils::truncate_cast<int> (this->cur_count_); |
| 1517 | + return static_cast<int> (this->cur_count_); |
1519 | 1518 | } |
1520 | 1519 |
|
1521 | 1520 | // Get the earliest (i.e., FIFO) ACE_Message_Block with the lowest |
@@ -1591,7 +1590,7 @@ ACE_Message_Queue<ACE_SYNCH_USE, TIME_POLICY>::dequeue_prio_i (ACE_Message_Block |
1591 | 1590 | && this->signal_enqueue_waiters () == -1) |
1592 | 1591 | return -1; |
1593 | 1592 | else |
1594 | | - return ACE_Utils::truncate_cast<int> (this->cur_count_); |
| 1593 | + return static_cast<int> (this->cur_count_); |
1595 | 1594 | } |
1596 | 1595 |
|
1597 | 1596 | // Actually get the last ACE_Message_Block (no locking, so must be |
@@ -1640,7 +1639,7 @@ ACE_Message_Queue<ACE_SYNCH_USE, TIME_POLICY>::dequeue_tail_i (ACE_Message_Block |
1640 | 1639 | && this->signal_enqueue_waiters () == -1) |
1641 | 1640 | return -1; |
1642 | 1641 | else |
1643 | | - return ACE_Utils::truncate_cast<int> (this->cur_count_); |
| 1642 | + return static_cast<int> (this->cur_count_); |
1644 | 1643 | } |
1645 | 1644 |
|
1646 | 1645 | // Actually get the ACE_Message_Block with the lowest deadline time |
@@ -1735,7 +1734,7 @@ ACE_Message_Queue<ACE_SYNCH_USE, TIME_POLICY>::peek_dequeue_head (ACE_Message_Bl |
1735 | 1734 | return -1; |
1736 | 1735 |
|
1737 | 1736 | first_item = this->head_; |
1738 | | - return ACE_Utils::truncate_cast<int> (static_cast<ssize_t> (this->cur_count_)); |
| 1737 | + return static_cast<int> (this->cur_count_); |
1739 | 1738 | } |
1740 | 1739 |
|
1741 | 1740 | template <ACE_SYNCH_DECL, class TIME_POLICY> int |
@@ -2436,7 +2435,7 @@ ACE_Dynamic_Message_Queue<ACE_SYNCH_USE, TIME_POLICY>::enqueue_i (ACE_Message_Bl |
2436 | 2435 | } |
2437 | 2436 | else |
2438 | 2437 | { |
2439 | | - return ACE_Utils::truncate_cast<int> (this->cur_count_); |
| 2438 | + return static_cast<int> (this->cur_count_); |
2440 | 2439 | } |
2441 | 2440 | } |
2442 | 2441 |
|
@@ -2636,7 +2635,7 @@ ACE_Dynamic_Message_Queue<ACE_SYNCH_USE, TIME_POLICY>::dequeue_head_i (ACE_Messa |
2636 | 2635 | } |
2637 | 2636 | else |
2638 | 2637 | { |
2639 | | - return ACE_Utils::truncate_cast<int> (this->cur_count_); |
| 2638 | + return static_cast<int> (this->cur_count_); |
2640 | 2639 | } |
2641 | 2640 | } |
2642 | 2641 |
|
|
0 commit comments