cromp_client_tester::cromp_client_tester()
: application_shell("cromp_client_tester"),
- _uplink(NIL),
+ _uplink(NULL_POINTER),
_lock(new mutex),
_threads_active(0),
_finished_loops(0.0),
structures::set<octopus_request_id> &delinquents, bool wait)
{
FUNCDEF("look_for_receipts");
- infoton *received = NIL;
+ infoton *received = NULL_POINTER;
while (count--) {
if (!ids.length()) break; // nothing to check on.
octopus_request_id the_id = ids[0];
if (!received) {
deadly_error(class_name(), func,
-"received packet was NIL even though outcome was OKAY!");
+"received packet was NULL_POINTER even though outcome was OKAY!");
}
// check that the right type is coming back to us.
FUNCDEF("grab_items");
octopus_request_id id(_uplink->entity(), -12);
// look for an id we don't expect to have any thing waiting for.
- infoton *found = NIL;
+ infoton *found = NULL_POINTER;
outcome ret = _uplink->retrieve_and_restore(found, id, 0);
WHACK(found);
}
// create the extra grabber threads.
for (int i = 0; i < _grabber_count; i++) {
grabby_thread *to_add = new grabby_thread(*this);
- cab.add_thread(to_add, false, NIL);
+ cab.add_thread(to_add, false, NULL_POINTER);
}
LOG(a_sprintf("adding %d transmitter threads to test.", _thread_count));
// create the specified number of threads.
for (int j = 0; j < _thread_count; j++) {
bitey_thread *to_add = new bitey_thread(*this);
- cab.add_thread(to_add, false, NIL);
+ cab.add_thread(to_add, false, NULL_POINTER);
}
//LOG("starting all threads...");
time_stamp start;
- cab.start_all(NIL);
+ cab.start_all(NULL_POINTER);
//LOG("done starting threads...");
time_control::sleep_ms(400); // wait until a few get cranked up.
| sed -e 's/log_base::CRLF_AT_END/parser_bits::CRLF_AT_END/g' \
| sed -e 's/^#include <mechanisms\/throughput_counter.h> *$/#include <sockets\/throughput_counter.h>/g' \
| sed -e 's/^#include <application\/rendezvous.h> *$/#include <processes\/rendezvous.h>/g' \
- | sed -e 's/\([[:space:]]\)*NIL\([^A-Za-z_\)/\1NULL_POINTER\2/g' \
+ | sed -e 's/\([^A-Za-z0-9_]\)NIL\([^A-Za-z0-9_]\)/\1NULL_POINTER\2/g' \
| sed -e 's/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/[\/]*/\/\/\/\/\/\/\/\/\/\/\/\/\/\//g' \
>"$tempfile"