User talk:Philosopher/Nasal introspection: Difference between revisions

Jump to navigation Jump to search
m
→‎August 14: make it less obviously broken :-)
m (→‎August 14: make it less obviously broken :-))
Line 54: Line 54:
My suggestion would be to add a global thread counter and increment/decrement it whenever you create/finish a thread – which will tell you what’s going on threading wise.
My suggestion would be to add a global thread counter and increment/decrement it whenever you create/finish a thread – which will tell you what’s going on threading wise.


You could use something like this (crude and untested untested):
You could use something like this (crude and untested):


<syntaxhighlight lang="php">
<syntaxhighlight lang="php">
Line 62: Line 62:
  var temp = { parents:[synced] };
  var temp = { parents:[synced] };
  temp._LOCK = thread.newlock();
  temp._LOCK = thread.newlock();
return temp;
}
}
synced.do = func (what, thread_id=nil) {
synced.do = func (what, thread_id=nil) {

Navigation menu