aboutsummaryrefslogtreecommitdiff
path: root/docs
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
commit49f8b961cc230280e4cf86cc8d50c8a6d8687a65 (patch)
tree9b096414f00dc12a3893158622e150c7085b0599 /docs
parent653dff5dc2c1a5764ef1afb6ffa5dd96758865ea (diff)
downloadlanes-49f8b961cc230280e4cf86cc8d50c8a6d8687a65.tar.gz
lanes-49f8b961cc230280e4cf86cc8d50c8a6d8687a65.tar.bz2
lanes-49f8b961cc230280e4cf86cc8d50c8a6d8687a65.zip
new API lanes.set_thread_priority()
Diffstat (limited to 'docs')
-rw-r--r--docs/index.html26
1 files changed, 23 insertions, 3 deletions
diff --git a/docs/index.html b/docs/index.html
index f50f342..af08397 100644
--- a/docs/index.html
+++ b/docs/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>