Alex Szpakowski
22c514e53a
Fixed a compiler warning
2013-03-03 18:55:57 -04:00
Bart van Strien
3d0c5761ce
Merge in default, update changelog
...
--HG--
branch : minor
2013-03-03 19:51:04 +01:00
Alex Szpakowski
0e4d7f1f4a
Replaced deprecated lua_open calls with luaL_newstate
2013-02-16 00:51:57 -04:00
Alex Szpakowski
668a1bfa6d
Silenced some compiler warnings
2013-02-09 21:24:41 -04:00
Alex Szpakowski
96161c66f6
Updated copyright text for the new year
2013-02-05 05:32:49 -04:00
Bart van Strien
c7c5d0ed6b
Fix race conditions and deadlocks in Channels (hopefully) (issue #554 )
...
Also, this is a giant commit because of the official Code Style (tm) was applied.
--HG--
branch : minor
2013-01-30 17:15:12 +01:00
Bart van Strien
be2363fc00
Add Channel:supply(), a blocking version of Channel:push()
...
--HG--
branch : minor
2013-01-27 20:04:16 +01:00
Bart van Strien
3dc4e3cdca
Also mutex lock in Channel::retain
...
--HG--
branch : minor
2012-07-05 17:25:41 +02:00
Bart van Strien
777e97de2e
Make Channels more thread-safe (I know, I know..)
...
--HG--
branch : minor
2012-07-04 20:22:54 +02:00
Bart van Strien
399a6a6614
Merge in channels from love-experiments
...
Rewritten love.thread and changed communication
method from weird system before, to channels.
--HG--
branch : minor
2012-07-04 17:15:16 +02:00
Bart van Strien
7793e7f02f
CRLF to LF
2012-07-04 14:40:24 +02:00
rude
81c38e22d0
Applied the new style guidelines.
...
Well, sort of. Lot's more to be done, but this is a start.
2012-06-28 23:52:33 +02:00
Bill Meltsner
be55579a22
Happy New Year, have an enormous diff
2012-01-09 02:41:11 -06:00
Bart van Strien
c707a4ca45
Properly export all lua-facing functions and use those for initialization (love.cpp no longer explicitly mentions implementations)
2011-12-24 01:10:40 +01:00
Bart van Strien
53e010a832
Remove all uses of LOVE_UNUSED, and simply not name the arguments instead
2011-12-20 20:26:17 +01:00
Bart van Strien
735260d4d8
Thread:kill()? What Thread:kill()?
2011-12-13 19:24:10 +01:00
Bart van Strien
083dd11185
Switch to a custom event system, where SDL pumps into
...
To do this we needed to take ThreadVariant out of love.thread, and move it to common.
This also changes event names, instead of 1/2-letter abbreviations, full names!
2011-12-13 17:50:38 +01:00
Bart van Strien
0aae9684b3
Automated formatting fix
2011-11-16 11:32:41 +01:00
Bart van Strien
2fafab9a0e
Add luax_checkstring/pushstring functions that handle inline \0 characters
2011-11-15 21:37:11 +01:00
Bart van Strien
cf2bfcc4a2
Fix more memory leaks (issue #327 )
2011-11-12 15:00:26 +01:00
Bill Meltsner
57f9cf439e
Add LOVE_UNUSED macro to stamp out all those "unused parameter" warnings
2011-10-12 14:03:38 -05:00
Bart van Strien
f9084c4625
Thread:getKeys needs to return a 1-indexed table
2011-08-31 12:28:56 +02:00
Bart van Strien
efb04ab27c
Add love.thread.getKeys (issue #276 )
2011-08-22 18:05:09 +02:00
Bart van Strien
77ccb93506
Fix regression due to thread backends commit
2011-07-05 15:30:55 +02:00
Bart van Strien
ce5927379d
Use a lua_type switch/case in thread.send, to prevent casts (bug #252 )
...
Push non-love userdata as lightuserdata, will probably break it, but shouldn't crash love (bug #243 )
2011-07-03 18:02:53 +02:00
Bill Meltsner
1cf6a6fee1
update the project for OS X and make pthreads work properly
2011-06-28 22:02:53 -05:00
Bart van Strien
8c5db2a92f
Fix up posix threading backend
2011-06-28 17:01:35 +02:00
Bart van Strien
da4c199467
Hopefully the last fixes to the win32 thread backend
2011-06-09 12:23:11 +02:00
Bart van Strien
994ad74e22
Additional cleanup
2011-06-09 11:01:11 +02:00
Bart van Strien
709263b032
Some fixes for the new threading backends
2011-06-09 10:56:13 +02:00
Bart van Strien
3460bf918c
Enabled headless build in autotools
2011-06-08 17:14:41 +02:00
Przemysław Grzywacz
1d5fca6f46
Multiple thread backends.
2011-06-08 16:54:35 +02:00
rude
3fe9b2ff16
Reverted module selection feature. This is not really desired.
...
Users (or lovers) do not get to choose which implementation of
a module they would like to use.
The abstraction is for dealing with portability issues, not
for giving people the ability to choose an alternative
(inferior) backend. The best choice for any platform/situation
should at all times be the *default* for that platform/situation.
If this is not the case; it's a bug (that is easily fixed).
Any module should provide the functionality promised in the docs.
The lover (or user) should not care how, and if [s]he does, [s]he
does still not get to choose.
Also, a related note: duplication of wrapper code is something I
especially wanted to avoid when I first (or should I say ...
"eventually") formed the current architecture.
--HG--
branch : minor
2011-03-26 17:06:05 +01:00
Bart van Strien
b4139ffab5
Rename loaders to fit their locations
...
--HG--
branch : minor
2011-03-13 20:25:35 +01:00
Bart van Strien
2115cf19b9
Fixed a couple of compiler warnings in minor branch
...
--HG--
branch : minor
2011-03-06 17:09:38 +01:00
Bill Meltsner
b0a07c7a4b
the merge screwed up the new thread API, fixed
...
--HG--
branch : minor
2011-03-05 23:18:54 -05:00
Bill Meltsner
ee282759e6
merge default into minor
...
--HG--
branch : minor
2011-03-05 22:13:48 -05:00
Bart van Strien
453593c9b0
Catch some more file-opening exceptions and make them lua errors instead
2011-02-18 16:10:20 +01:00
Bart van Strien
31f8c68b4b
Fixed more locking issues in love.thread
2011-02-11 20:41:03 +01:00
Bart van Strien
fd34409bd4
Peek gets locks too
2011-02-11 19:50:34 +01:00
Bart van Strien
28c49d8fb4
getThreads now indexes with the names again
2011-02-11 18:53:23 +01:00
Bart van Strien
677df8d4f0
Merge 'default' into 'minor'
...
--HG--
branch : minor
2011-01-17 11:08:58 +01:00
Bart van Strien
6acacffb66
Threads get/set instead of send/receive (issue #166 )
...
--HG--
branch : minor
2011-01-15 22:26:16 +01:00
Bill Meltsner
fde708160e
bringing in the new year by changing every 2010 to 2011
2011-01-15 14:40:27 -06:00
rude
9d108d2bde
Added missing lua_strlen to ThreadVariant construction. MSVC coerced the 'const char*'-argument into the bool version of the constructor, causing the wrong function to be called.
2011-01-09 16:36:13 +01:00
Bart van Strien
089da5b08d
More race conditions, what fun
2011-01-03 22:19:24 +01:00
Bart van Strien
ece02577a5
More race conditions (bug #131 )
2010-12-31 11:37:50 +01:00
Bart van Strien
cfeb01db42
Prevent race condition in thread:receive (bug #131 )
2010-12-31 00:44:32 +01:00
Bart van Strien
c4fe77694b
Applied (and fixed) vrld's thread patch
2010-12-27 14:34:43 +01:00
Bart van Strien
e840a8f96c
Another embedded zero issue in threads (isue #128 )
2010-12-20 19:08:29 +01:00