Skip to content
This repository has been archived by the owner on Apr 14, 2018. It is now read-only.

Commit

Permalink
Added proper prefix to all posted strings
Browse files Browse the repository at this point in the history
  • Loading branch information
qdot committed Oct 3, 2010
1 parent 373b54a commit f26b19c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions np_mindset.flext.cpp
Expand Up @@ -252,7 +252,7 @@ class np_mindset:
post("np_mindset - Mindset not currently open");
return;
}
post("Closing Mindset");
post("np_mindset - Closing Mindset");
if(!m_threadMutex.TryLock())
{
mindset_stop();
Expand All @@ -261,7 +261,7 @@ class np_mindset:
m_threadMutex.Unlock();
close();
m_isOpen = false;
post("Closed Mindset");
post("np_mindset - Closed Mindset");
}

void mindset_anything(const t_symbol *msg,int argc,t_atom *argv)
Expand All @@ -271,15 +271,15 @@ class np_mindset:
std::string port = GetString(argv[0]);
if(!open(port))
{
post("Cannot open, exiting");
post("np_mindset - Cannot open, exiting");
return;
}
m_isOpen = true;
post("Opened Mindset");
post("np_mindset - Opened Mindset");
ToOutBang(0);
return;
}
post("np_mindset: not a valid np_mindset message: %s", msg->s_name);
post("np_mindset - not a valid np_mindset message: %s", msg->s_name);
}

void mindset_raw(long t)
Expand Down Expand Up @@ -313,15 +313,15 @@ class np_mindset:
m_threadMutex.Unlock();
ScopedMutex m(m_threadMutex);
ToOutBang(0);
post("Entering mindset thread");
post("np_mindset - Entering mindset thread");
m_runThread = true;
while(!ShouldExit() && m_runThread)
{
read();
mindset_output();
Sleep(m_sleepTime);
}
post("Exiting mindset thread");
post("np_mindset - Exiting mindset thread");
}

void mindset_output()
Expand Down

0 comments on commit f26b19c

Please sign in to comment.