MCPcopy Create free account
hub / github.com/SNAS/openbmp / back

Method back

Server/src/safeQueue.hpp:141–153  ·  view source on GitHub ↗

* 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 */

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected