X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Fprocesses%2Fpost_office.cpp;h=4eceba57a2c895c6e401965b133bb96e00b19bc1;hb=d7e8a05960951d8ce67e36c587726a851e2f5165;hp=523e4bb350b7ce55e7a97d8de096af82c49f7a1f;hpb=fa30e6adff1dea5d6b3903279ef024dd3bed043f;p=feisty_meow.git diff --git a/nucleus/library/processes/post_office.cpp b/nucleus/library/processes/post_office.cpp index 523e4bb3..4eceba57 100644 --- a/nucleus/library/processes/post_office.cpp +++ b/nucleus/library/processes/post_office.cpp @@ -102,7 +102,7 @@ public: unique_int _thread_id; unique_int _id; - tagged_mail_stop(const unique_int &id = 0, mail_stop *route = NIL, + tagged_mail_stop(const unique_int &id = 0, mail_stop *route = NULL_POINTER, const unique_int &thread_id = 0) : _route(route), _thread_id(thread_id), _id(id) {} @@ -128,7 +128,7 @@ public: tagged_mail_stop *curr = borrow(i); if (curr && (curr->_id == id)) return curr; } - return NIL; + return NULL_POINTER; } bool zap(const unique_int &id) { @@ -363,13 +363,13 @@ bool post_office::register_route(const unique_int &id, if (found) return false; // already exists. postal_carrier *po = new postal_carrier(*this, id); - unique_int thread_id = _threads->add_thread(po, false, NIL); + unique_int thread_id = _threads->add_thread(po, false, NULL_POINTER); // add the thread so we can record its id. tagged_mail_stop *new_stop = new tagged_mail_stop(id, &carrier_path, thread_id); _routes->append(new_stop); // add the mail stop to our listings. - po->start(NIL); + po->start(NULL_POINTER); // now start the thread so it can begin cranking. return true; }