Commit Graph

70 Commits

Author SHA1 Message Date
Alex Szpakowski 0752f27bdf Update copyright year for 2019 2019-01-03 21:09:05 -04:00
Bart van Strien e80247c191 Happy new year! 2018-01-03 19:47:35 +01:00
Bart van Strien a4a62f390a Disable signal handling in threads (see issue #1042)
I don't necessarily like having to do these extra calls whenever threads are
spawned (and what happens to signals during the time signal delivery is
disabled?) but it seems to fully fix os.execute.

NOTE: Also disables signals when loading openal, as it or one of its backends
spawns threads internally, and does not disable signals itself.

--HG--
branch : minor
2017-07-02 15:27:58 +02:00
Alex Szpakowski abb72cb813 Happy new year! 🥂
--HG--
branch : minor
2017-01-02 01:28:29 -04:00
Alex Szpakowski b1b4a637b5 Fix a potential crash when a Thread ends (resolves issue #1219). 2016-10-08 10:50:50 -03:00
Alex Szpakowski 0b1bfba493 Use SDL_DetachThread instead of a conditional SDL_WaitThread when a Thread is destroyed. 2016-09-08 23:33:48 -03:00
Alex Szpakowski 46a2e7b85c Happy new year! 🎉 2016-01-01 00:05:06 -04:00
Alex Szpakowski c7b45b3505 Updated copyright for the new year 2014-12-31 19:32:43 -04:00
Alex Szpakowski 1bc8b7346d Added internal thread name support, for use with debuggers. 2014-05-02 08:56:23 -03:00
Alex Szpakowski e4dc533bb2 Minor code cleanup 2014-05-01 14:12:21 -03:00
Alex Szpakowski 3120a0e650 Goodbye 2013, hello 2014! 2014-01-03 17:28:58 -04:00
Alex Szpakowski 113ed1cfe7 Merged SDL2 changes from bartbes/love-experiments/SDL2 into default.
- Added love.system module, including clipboard functions.

- Added custom hardware cursors (love.mouse.newCursor, love.mouse.setCursor.)

- Revamped love.joystick:
-- added Joystick objects and moved love.joystick functions which operated on individual joysticks to methods on the Joystick objects.
-- Added love.joystick.getJoystick and love.joystick.getJoystickCount.
-- Added events for when joysticks are connected and disconnected.
-- Added 'Gamepad' methods to Joystick objects: Joystick:isGamepad, Joystick:getGamepadAxis, and Joystick:isGamepadDown. They're a common abstraction for xbox controller-like joystick across operating systems.

- Added monitor choosing support and "fullscreen desktop" mode to love.window.

- Moved unicode text input events to their own callback function (love.textinput), removed the key repeat functions from love.keyboard and made the second argument of love.keypressed a boolean saying whether the keypress was a repeat.

- liblove now works with love.window and love.graphics in OS X
2013-08-25 16:51:42 -03:00
Bart van Strien 1602c6de7a Make mutex locks slightly more safe in some places (and correct in another...) 2013-08-03 22:13:33 +02:00
Alex Szpakowski 8ac288876d Added Thread:isRunning 2013-07-16 00:18:04 -03:00
Alex Szpakowski 9155b7b0ee Removed dead code for the now-removed Thread:kill 2013-07-08 17:00:47 -03:00
Alex Szpakowski 8d7e0b5629 Time-travelling license text 2013-06-22 03:14:15 -03:00
Bart van Strien 3d0c5761ce Merge in default, update changelog
--HG--
branch : minor
2013-03-03 19:51:04 +01: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 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 53e010a832 Remove all uses of LOVE_UNUSED, and simply not name the arguments instead 2011-12-20 20:26:17 +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 709263b032 Some fixes for the new threading backends 2011-06-09 10:56:13 +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
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