* back * Thread safe method that returns a copy of the back object * in the arg passed as value. * * ARGS: * value = reference to allocated . * * RETURNS: * true if the value was updated, false if not */
| 139 | * true if the value was updated, false if not |
| 140 | */ |
| 141 | bool back(type &value) { |
| 142 | |
| 143 | // Lock |
| 144 | pthread_mutex_lock (&mutex); |
| 145 | |
| 146 | // get back |
| 147 | value = queue<type>::back(); |
| 148 | |
| 149 | // Unlock |
| 150 | pthread_mutex_unlock (&mutex); |
| 151 | |
| 152 | return true; |
| 153 | } |
| 154 | |
| 155 | /** |
| 156 | * PopFront is a bit different in that the mutex lock handles getting |
nothing calls this directly
no outgoing calls
no test coverage detected