summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Germain <b n t DOT g e r m a i n AT g m a i l DOT c o m>2013-12-04 08:40:23 +0100
committerBenoit Germain <b n t DOT g e r m a i n AT g m a i l DOT c o m>2013-12-04 08:40:23 +0100
commitf0b8b77756a55c750e0b6a4cd3c28c3cda110070 (patch)
tree74112d28e51ea70bd05a038c86cb588591220157
parent8b444a0363cdd41eead836fb098dc6299013e755 (diff)
downloadlanes-f0b8b77756a55c750e0b6a4cd3c28c3cda110070.tar.gz
lanes-f0b8b77756a55c750e0b6a4cd3c28c3cda110070.tar.bz2
lanes-f0b8b77756a55c750e0b6a4cd3c28c3cda110070.zip
new API lanes.set_thread_priority()
-rw-r--r--index.html26
1 files changed, 23 insertions, 3 deletions
diff --git a/index.html b/index.html
index f50f342..af08397 100644
--- a/index.html
+++ b/index.html
@@ -70,7 +70,7 @@
70 </p> 70 </p>
71 71
72 <p> 72 <p>
73 This document was revised on 28-Nov-13, and applies to version <tt>3.7.3</tt>. 73 This document was revised on 3-Dec-13, and applies to version <tt>3.7.4</tt>.
74 </p> 74 </p>
75 </font> 75 </font>
76 </center> 76 </center>
@@ -537,7 +537,7 @@
537</p> 537</p>
538 538
539<p> 539<p>
540 <code>opt_tbl</code> is a collection of named options to control the way lanes are run: 540 <code id="generator_settings">opt_tbl</code> is a collection of named options to control the way lanes are run:
541</p> 541</p>
542 542
543<p> 543<p>
@@ -554,7 +554,7 @@
554 </td> 554 </td>
555 <td>integer >= 1/<tt>true</tt></td> 555 <td>integer >= 1/<tt>true</tt></td>
556 <td> 556 <td>
557 By default, lanes are only cancellable when they <u>enter</u> a pending <tt>:receive()</tt> or <tt>:send()</tt> call. With this option, one can set <a href="#cancelling">cancellation</a> check to occur every <tt>N</tt> Lua statements. The value <tt>true</tt> uses a default value (100). 557 By default, lanes are only cancellable when they <u>enter</u> a pending <tt>:receive()</tt> or <tt>:send()</tt> call. With this option, one can set <a href="#cancelling">cancellation</a> check to occur every <tt>N</tt> Lua statements through the line hook facility. The value <tt>true</tt> uses a default value (100).
558 It is also possible to manually test for cancel requests with <tt>cancel_test()</tt>. 558 It is also possible to manually test for cancel requests with <tt>cancel_test()</tt>.
559 </td> 559 </td>
560 </tr> 560 </tr>
@@ -593,6 +593,8 @@
593 These values are a mapping over the actual priority range of the underlying implementation. 593 These values are a mapping over the actual priority range of the underlying implementation.
594 <br> 594 <br>
595 Implementation and dependability of priorities varies by platform. Especially Linux kernel 2.6 is not supporting priorities in user mode. 595 Implementation and dependability of priorities varies by platform. Especially Linux kernel 2.6 is not supporting priorities in user mode.
596 <br>
597 A lane can also change its own thread priority dynamically with <a href="#priority"><tt>lanes.set_thread_priority()</tt></a>.
596 </td> 598 </td>
597 </tr> 599 </tr>
598 <tr valign=top> 600 <tr valign=top>
@@ -644,6 +646,24 @@
644</p> 646</p>
645 647
646 648
649<!-- priority +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
650<hr/>
651<h2 id="priority">Priority</h2>
652
653 <table border="1" bgcolor="#E0E0FF" cellpadding="10" style="width:50%">
654 <tr>
655 <td>
656 <pre> lanes.set_thread_priority( prio)</pre>
657 </td>
658 </tr>
659 </table>
660<p>
661 Besides setting a default priority in the generator <a href="#generator_settings">settings</a>, each thread can change its own priority at will. This is also true for the main Lua state.
662 <br>
663 The priority must be in the range <tt>[-3,+3]</tt>.
664</p>
665
666
647<!-- status +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> 667<!-- status +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
648<hr/> 668<hr/>
649<h2 id="status">Status</h2> 669<h2 id="status">Status</h2>