1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-14 15:23:39 +00:00
Commit Graph

27 Commits

Author SHA1 Message Date
Bryan Roe
28db019101 1. Added ability to spawn joinable threads on linux
2. Added ILibThread_TimedJoin()
2020-04-20 21:51:55 -07:00
Bryan Roe
71d4b1edca 1. Fixed compiler warnings
2. Updated thread cleanup/finalizer logic to rely on ctxd if necessary
2020-04-20 17:01:53 -07:00
Bryan Roe
72cbf91686 updated cleanup logic 2020-04-18 17:08:09 -07:00
Bryan Roe
743a38eeeb 1. Updated WaitHandle_Add2 to no use APC to dispatch to event loop, becuase winsock is not re-entrant, and don't want to risk corruption
2. Updated memory handling for async methods in Generic Marshal
2020-04-18 13:53:38 -07:00
Bryan Roe
df752bdc70 Updated memory handling of async method 2020-04-18 09:30:29 -07:00
Bryan Roe
5ba1288cdf Modified JS runtime to use ILibMemory_Extra to point to udata structure,
then used that for consistency checks
2020-04-17 15:05:47 -07:00
Bryan Roe
05d0617539 Modified Wide2UTF8, to divide buffer size by 2, when calling WideToMultiByte, if specified 2020-02-12 14:43:02 -08:00
Bryan Roe
981ee96ad7 1. Updated GenericMarshal.GlobalCallback to have a close() method, to unhook global events
2. Updated EventEmitter to delete callback references for 'once', 'removeListener', and 'removeAllListeners'
3. Updated win-message-pump to cleanup global events correctly, so object can be garbage collected
2020-01-09 13:57:23 -08:00
Bryan Roe
65f3fd5910 Added _exposedMethod helper property 2020-01-07 14:48:31 -08:00
Bryan Roe
9661c15bc9 1. added .msh flag for HECI debug
2. Fixed _GenericMarshal crash on Windows if GlobalCallback is executed after GC
2019-12-12 10:48:50 -08:00
Bryan Roe
1c64223b1b Updated 'CreateVariable' so you can pass in a buffer 2019-11-26 10:20:17 -08:00
Bryan Roe
a0176c8f39 1. Fixed crashes that could occur on Windows if context switches happen after object was GC'ed
2. Updated so GlobalSet isn't shared for two different purposes, fixing bug where events could get inadvertantly dispatched multiple times.
2019-10-30 14:39:32 -07:00
Bryan Roe
b5e0074392 Fixed bug introduced with APC dispatcher where exception is thrown, if first param of 'async' was not an object or function. 2019-10-09 10:49:42 -07:00
Bryan Roe
244eb01869 Fixed compiler warnings 2019-10-07 20:55:48 -07:00
Bryan Roe
ba7ef6c942 Fixed bug, when global dispatch was done without context switching, stale pointers were not cleared 2019-10-04 12:32:37 -07:00
Bryan Roe
be2f08aac7 1. Fixed bug in monitor-info, where Windows was reported as not supported
2. Added support for APC Thread Dispatching to _GenericMarshal
3. Updated win-message-pump to use APC dispatching of Message Pump Thread
4. Added support to create non-hidden windows in win-message-pump
2019-10-02 14:00:32 -07:00
Bryan Roe
e3ec71f5e8 Fixed compiler warning 2019-08-14 14:52:39 -07:00
Bryan Roe
e87d1d5db1 Fixed compiler warnings 2019-08-13 22:17:21 -07:00
Bryan Roe
b34eee2dca 1. Added 'getUsername' for windows
2. Added UTF8/Wide conversions for _GenericMarshal
3. Added UTF8 support for win-registry and process-manager
2019-08-08 15:37:17 -07:00
Bryan Roe
8fbb54d79e Fixed CreateVariable, so if a negative number is specified, it throws an exception, instead of critical exiting 2019-03-09 00:44:36 -08:00
Bryan Roe
5da959c16a 1. Added metadata to _GenericMarshal
2. Added BootStrapCore functionality
2019-02-18 21:45:58 -08:00
Bryan Roe
3612e45cef Fixed compiler warning on GCC related to duktape specific issue 2019-01-17 21:56:34 -08:00
Bryan Roe
70daead65e Added Async Threading helpers 2019-01-11 12:22:16 -08:00
Ylian Saint-Hilaire
3c80473a94 Major agent update. 2018-09-05 11:01:17 -07:00
Ylian Saint-Hilaire
4b5c77b4fd Many improvements. 2018-02-11 21:11:58 -08:00
Ylian Saint-Hilaire
508646044e Much improved, better stability, lots of fixes 2018-01-12 11:50:04 -08:00
Ylian Saint-Hilaire
75d86eb4c8 First commit of MeshAgent for MeshCentral 2017-10-12 14:28:03 -07:00