<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://panoptic.com/mediawiki/aolserver/index.php?action=history&amp;feed=atom&amp;title=Ns_cond</id>
	<title>Ns cond - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://panoptic.com/mediawiki/aolserver/index.php?action=history&amp;feed=atom&amp;title=Ns_cond"/>
	<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Ns_cond&amp;action=history"/>
	<updated>2026-04-12T22:02:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://panoptic.com/mediawiki/aolserver/index.php?title=Ns_cond&amp;diff=2597&amp;oldid=prev</id>
		<title>WikiSysop: imported from WiKit id 534</title>
		<link rel="alternate" type="text/html" href="https://panoptic.com/mediawiki/aolserver/index.php?title=Ns_cond&amp;diff=2597&amp;oldid=prev"/>
		<updated>2004-06-09T22:50:28Z</updated>

		<summary type="html">&lt;p&gt;imported from WiKit id 534&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Man page: http://aolserver.com/docs/tcl/ns_cond.html&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
'''NAME'''&lt;br /&gt;
&lt;br /&gt;
: ns_cond - Operate on condition variables&lt;br /&gt;
&lt;br /&gt;
'''SYNOPSIS'''&lt;br /&gt;
&lt;br /&gt;
: '''ns_cond''' ''option ?arg arg ...?''&lt;br /&gt;
&lt;br /&gt;
'''DESCRIPTION'''&lt;br /&gt;
&lt;br /&gt;
: This command provides a mechanism to manipulate condition variables.  The legal ''option''s (which may be abbreviated) are:&lt;br /&gt;
* '''ns_cond broadcast''' ''object''&lt;br /&gt;
&lt;br /&gt;
: Wakes up all threads waiting on the specified ''object''.&lt;br /&gt;
* '''ns_cond create'''&lt;br /&gt;
&lt;br /&gt;
: Initializes a new condition variable and returns a handle to it.&lt;br /&gt;
* '''ns_cond destroy''' ''object''&lt;br /&gt;
&lt;br /&gt;
: Destroys the condition variable and frees any resources it was using.&lt;br /&gt;
&lt;br /&gt;
: '''NOTE:''' No threads must be waiting on the condition variable, or else the behavior is undefined and will likely crash the server.&lt;br /&gt;
* '''ns_cond set''' ''object''&lt;br /&gt;
* '''ns_cond signal''' ''object''&lt;br /&gt;
&lt;br /&gt;
: Wakes up one thread waiting on the specified ''object''.  If more than one thread is waiting, only one is woken up.  If no threads are waiting, nothing happens.&lt;br /&gt;
* '''ns_cond abswait''' ''condId mutexId ?timeout?''&lt;br /&gt;
&lt;br /&gt;
: Waits on a condition variable.  ''timeout'' is an absolute time in Unix seconds when to wait until.  If not specified, ''timeout'' defaults to 0, which causes the command to not sleep at all.  Returns 1 on success or 0 on timeout.&lt;br /&gt;
* '''ns_cond timedwait''' ''condId mutexId ?timeout?'' &lt;br /&gt;
* '''ns_cond wait''' ''condId mutexId ?timeout?'' &lt;br /&gt;
&lt;br /&gt;
: Waits on a condition variable.  If ''timeout'' is not specified, the thread will sleep indefinitely.  Otherwise, the thread will wait up to ''timeout'' seconds.  Returns 1 on success or 0 on timeout.&lt;br /&gt;
&lt;br /&gt;
'''EXAMPLES'''&lt;br /&gt;
&lt;br /&gt;
'''SEE ALSO'''&lt;br /&gt;
&lt;br /&gt;
: [[ns_event]], [[ns_mutex]], [[ns_thread]]&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
[[Category Documentation]] - [[Category Core Tcl API]]&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
		
	</entry>
</feed>