Skip to content

Commit

Permalink
lanes version 3.2.0
Browse files Browse the repository at this point in the history
* keeper internals implemented in C instead of Lua for better performances
* fixed arguments checks in linda:limit() and linda:set()
  • Loading branch information
benoit-germain committed Aug 22, 2012
1 parent a9075ff commit f0b1c6d
Show file tree
Hide file tree
Showing 9 changed files with 437 additions and 28 deletions.
2 changes: 1 addition & 1 deletion ABOUT
Expand Up @@ -3,7 +3,7 @@ Lua Lanes
---------

Lanes is a lightweight, native, lazy evaluating multithreading library for
Lua 5.1. It allows efficient use of multicore processors in Lua, by passing
Lua 5.1 and Lua 5.2. It allows efficient use of multicore processors in Lua, by passing
function calls into separate OS threads, and separate Lua states.

No locking of the threads is needed, only launching and waiting for (with an
Expand Down
4 changes: 4 additions & 0 deletions CHANGES
@@ -1,5 +1,9 @@
CHANGES:

CHANGE 45: BGe 21-Aug-2012
* keeper internals implemented in C instead of Lua for better performances
* fixed arguments checks in linda:limit() and linda:set()

CHANGE 44: BGe 13-Aug-2012
* lanes code updated to build against Lua 5.1 and Lua 5.2
* removed the search for MSVCR80.DLL when building for MinGW32 since it no longer seems to be necessary
Expand Down
2 changes: 1 addition & 1 deletion COPYRIGHT
Expand Up @@ -7,7 +7,7 @@ For details and rationale, see http://www.lua.org/license.html
===============================================================================

Copyright (C) 2007-11 Asko Kauppi, <akauppi@gmail.com>
Copyright (C) 2010-11 Benoit Germain, <bnt.germain@gmail.com>
Copyright (C) 2010-12 Benoit Germain, <bnt.germain@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
3 changes: 1 addition & 2 deletions Makefile
Expand Up @@ -197,11 +197,10 @@ LUA_SHAREDIR=$(DESTDIR)/share/lua/5.1
#
# AKa 17-Oct: changed to use 'install -m 644' and 'cp -p'
#
install: $(_TARGET_SO) src/lanes.lua src/lanes-keeper.lua
install: $(_TARGET_SO) src/lanes.lua
mkdir -p $(LUA_LIBDIR) $(LUA_LIBDIR)/lanes $(LUA_SHAREDIR)
install -m 644 $(_TARGET_SO) $(LUA_LIBDIR)/lanes
cp -p src/lanes.lua $(LUA_SHAREDIR)
cp -p src/lanes-keeper.lua $(LUA_SHAREDIR)


#--- Packaging ---
Expand Down
6 changes: 3 additions & 3 deletions docs/index.html
Expand Up @@ -56,7 +56,7 @@

<p><br/><font size="-1"><i>Copyright &copy; 2007-12 Asko Kauppi, Benoit Germain. All rights reserved.</i>
<br>Lua Lanes is published under the same <A HREF="http://en.wikipedia.org/wiki/MIT_License">MIT license</A> as Lua 5.1 and 5.2.
</p><p>This document was revised on 13-Aug-12, and applies to version 3.1.6
</p><p>This document was revised on 21-Aug-12, and applies to version 3.2.0
</font></p>

</center>
Expand Down Expand Up @@ -147,7 +147,7 @@ <h2 id="installing">Building and Installing</h2>
details and limitations.
</p>

<p>To install Lanes, all you need are the <tt>lanes.lua</tt> <tt>lanes-keeper.lua</tt> and <tt>lanes/core.so|dll</tt>
<p>To install Lanes, all you need are the <tt>lanes.lua</tt> and <tt>lanes/core.so|dll</tt>
files to be reachable by Lua (see LUA_PATH, LUA_CPATH).

Or use <A HREF="http://www.luarocks.org" TARGET="_blank">Lua Rocks</A> package management.
Expand Down Expand Up @@ -1070,7 +1070,7 @@ <h3 id="performance">Performance considerations</h3>
<li>Lindas are hashed to a fixed number of "keeper states", which are a locking entity.
If you are using a lot of Linda objects,
it may be useful to try having more of these keeper states. By default,
only one is used (see <tt>KEEPER_STATES_N</tt>), but this is an implementation detail.
only one is used (see <tt>lanes.configure()</tt>).
</li>
</ul>
</p>
Expand Down

0 comments on commit f0b1c6d

Please sign in to comment.