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
Bart van Strien
11ab5600d3
Correctly handle embedded zeros in thread names and ThreadVariants (bug #128 )
2010-12-07 19:37:59 +01:00
Bart van Strien
8a7e2a0629
Thread wrapper checks for failed thread creation. ( fixes #90 )
2010-10-23 18:16:20 +02:00
Bart van Strien
fe373075a4
Thread now has access to mutex and cond as well, fixes bug where errors wouldn't get picked up
2010-09-20 00:56:37 +02:00
Bart van Strien
48a94f32d9
newThread now accepts files
2010-08-04 14:22:30 +02:00
bart@bartbes.ath.cx
140d3866a3
Removed ineffective and error-prone killthread in thread destructor
2010-05-23 15:36:49 +02:00
bart@bartbes.ath.cx
200d4bc653
It looks like a dirty hack, it probably is, but this fixes the GC
2010-05-20 21:53:50 +02:00
Bill Meltsner
7c33786100
fixed a ridiculous number of gcc warnings, nearly all of which were complaints about unused parameters - the remaining 199 warnings I get are from code that isn't ours (box2d is responsible for all but 8 of them)
2010-02-26 03:55:21 -05:00
bart@bartbes.ath.cx
dbf8301f24
Merge (the hardest merge evahr, thanks rude)
2010-02-25 20:13:50 +01:00
bart@bartbes.ath.cx
051f6f6eaa
Switched global thread to love._curthread and made love.thread.getThread() return that
2010-02-25 19:52:00 +01:00
rude
16bf591c96
Fixed a MSVC warning.
2010-02-24 21:35:21 +01:00
rude
5fca0e9b33
Changed getThreads so that the caller must allocate the memory.
2010-02-24 21:34:55 +01:00
rude
368765820e
Changed unnecessary pass-by-value to pass-by-reference.
2010-02-24 21:21:45 +01:00
rude
bdafe0e455
Globals?! When did Bartbes the Sex Machine abandon reason for MADNESS?
2010-02-24 20:47:56 +01:00
rude
b4ad36cc51
Objects extending love::Object need to have virtual destructors. They are garbage collected as love::Object.
2010-02-24 20:43:05 +01:00
rude
4ba513b679
Bye-bye ThreadModuleRegistrar. An abstract ThreadModule will do that job.
2010-02-24 20:40:59 +01:00
Bill Meltsner
4ad7634a78
updated the Xcode project with love.thread, and fixed a few gcc warnings
2010-02-22 00:25:51 -05:00
bart@bartbes.ath.cx
75f651c84b
getThreads works now (love.thread)
2010-02-16 16:02:07 +01:00
bart@bartbes.ath.cx
8457d461f8
Added a 'main' thread (love.thread)
2010-02-14 19:14:07 +01:00
bart@bartbes.ath.cx
736f7ab1a2
love.thread can now share full userdata
2010-02-14 17:41:11 +01:00
bart@bartbes.ath.cx
cc4d737924
Added demand (love.thread)
2010-02-14 11:16:56 +01:00
bart@bartbes.ath.cx
269b70f30c
Made receive destructive, added peek (love.thread)
2010-02-14 10:39:42 +01:00
bart@bartbes.ath.cx
2dcd11551c
Working communication in love.thread
2010-02-14 10:09:21 +01:00
bart@bartbes.ath.cx
555d542c09
Added ThreadVariant, and uses ThreadData for inter-thread communication, AND removed .o's
2010-02-12 21:25:50 +01:00
rude
d084deeebf
Added project files for love.thread on Windows. Also a minor fix to make love.thread builable as a standalone DLL.
2010-02-12 20:59:32 +01:00
bart@bartbes.ath.cx
355a94755d
Added first version of thread and enabled newFileData
2010-02-12 20:24:39 +01:00