Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System: Impl spinlock and usleep methods for sys targets #1781

Open
wants to merge 29 commits into
base: 8.2.0-Dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
96c8d6f
System: Impl spinlock and usleep methods for sys targets
dimensionscape May 1, 2024
c1580d0
System
dimensionscape May 1, 2024
6a6f653
System: Rework spinlock and usleep Impl
dimensionscape May 1, 2024
958e5c6
System: Prepare timestamp for hl and neko
dimensionscape May 1, 2024
e1457e7
Merge pull request #1810 from openfl/8.2.0-Dev
dimensionscape Jul 4, 2024
dae33c0
Bug fix: new job could be ignored if it arrived with precise timing.
player-03 Aug 9, 2024
bf4711a
Avoid sending `JobData` back to the main thread.
player-03 Aug 9, 2024
0b83b7d
Fix typo.
player-03 Aug 11, 2024
8f631fe
Optimize `ThreadPool` slightly.
player-03 Aug 12, 2024
d0cef42
Revert `BackgroundWorker` to its 8.1.3 version.
player-03 Aug 15, 2024
52931a8
Revert to `Future`'s behavior from 8.1.3.
player-03 Aug 15, 2024
2866d09
Remove external link.
player-03 Aug 15, 2024
6873ae1
`Future.ready()` only works when threads are available.
player-03 Aug 15, 2024
31700a0
Merge pull request #1830 from player-03/old_thread_classes
player-03 Aug 16, 2024
ed05aa2
Fix getContextsDevice on Hashlink
ACrazyTown Aug 16, 2024
9b7c791
Update `ThreadPool` documentation.
player-03 Aug 18, 2024
b3e44ba
Run formatter.
player-03 Aug 18, 2024
b7dd455
Haxe expects documentation above metadata.
player-03 Aug 19, 2024
a774bac
Remove `canceled` and `completed` from `ThreadPool`.
player-03 Aug 19, 2024
d3a39b5
One more documentation pass.
player-03 Aug 22, 2024
2907e42
BackgroundWorker:Docs
dimensionscape Aug 22, 2024
5c8538e
BackgroundWorker: More docs
dimensionscape Aug 22, 2024
4f4f5df
AudioSource: Docs
dimensionscape Aug 22, 2024
0b93684
AudioBuffer: docs
dimensionscape Aug 22, 2024
96c5c1c
Simplify `ThreadPool.cancelJob()`.
player-03 Aug 24, 2024
6ab5246
actions: update dependencies
joshtynjala Sep 3, 2024
c4a9bb8
Socket: flash extern used wrong type for objectEncoding property
joshtynjala Sep 4, 2024
dd79e58
LZMA: fix is check missing parentheses
joshtynjala Sep 10, 2024
d4f3612
Merge pull request #1842 from openfl/develop
dimensionscape Sep 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 40 additions & 40 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-20.04
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true

Expand Down Expand Up @@ -49,23 +49,23 @@ jobs:
lime rebuild linux -64 -release -nocolor -verbose -nocffi
lime rebuild hl -clean -release -nocolor -verbose -nocffi

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: Linux-NDLL
path: |
ndll/Linux/
!**/.gitignore
if-no-files-found: error

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: Linux64-NDLL
path: |
ndll/Linux64/
!**/.gitignore
if-no-files-found: error

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: Linux64-Hashlink
path: |
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
runs-on: macos-12
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true

Expand Down Expand Up @@ -141,23 +141,23 @@ jobs:
lime rebuild macos -clean -release -arm64 -nocolor -verbose -nocffi
lime rebuild hl -clean -release -nocolor -verbose -nocffi

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: Mac64-NDLL
path: |
ndll/Mac64/
!**/.gitignore
if-no-files-found: error

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: MacArm64-NDLL
path: |
ndll/MacArm64/
!**/.gitignore
if-no-files-found: error

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: Mac64-Hashlink
path: |
Expand Down Expand Up @@ -187,7 +187,7 @@ jobs:
runs-on: windows-latest
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true

Expand Down Expand Up @@ -221,29 +221,29 @@ jobs:
lime rebuild windows -64 -release -nocolor -verbose -nocffi
lime rebuild hl -clean -release -nocolor -verbose -nocffi

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: Windows-NDLL
path: |
ndll/Windows/
!**/.gitignore
if-no-files-found: error

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: Windows64-NDLL
path: |
ndll/Windows64/
!**/.gitignore
if-no-files-found: error

# - uses: actions/upload-artifact@v3
# - uses: actions/upload-artifact@v4
# with:
# name: Windows-Hashlink
# path: |
# templates/bin/hl/Windows
# if-no-files-found: error
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: Windows64-Hashlink
path: |
Expand Down Expand Up @@ -273,7 +273,7 @@ jobs:
runs-on: ubuntu-20.04
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true

Expand All @@ -283,7 +283,7 @@ jobs:
with:
ndk-version: r21e

- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: 11
Expand Down Expand Up @@ -323,7 +323,7 @@ jobs:
run: |
lime rebuild android -release -nocolor -verbose -nocffi -eval

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: Android-NDLL
path: |
Expand Down Expand Up @@ -353,7 +353,7 @@ jobs:
runs-on: macos-12
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true

Expand Down Expand Up @@ -384,7 +384,7 @@ jobs:
run: |
lime rebuild ios -clean -release -verbose -nocolor -eval

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: iPhone-NDLL
path: |
Expand Down Expand Up @@ -416,7 +416,7 @@ jobs:
runs-on: ubuntu-20.04
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true

Expand Down Expand Up @@ -451,62 +451,62 @@ jobs:
cp project/lib/hashlink/src/hl.h templates/bin/hl/include/hl.h
cp project/lib/hashlink/src/hlc_main.c templates/bin/hl/include/hlc_main.c

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: Android-NDLL
path: ndll/Android/

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: iPhone-NDLL
path: ndll/iPhone/

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: Linux-NDLL
path: ndll/Linux/

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: Linux64-NDLL
path: ndll/Linux64/

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: Mac64-NDLL
path: ndll/Mac64/

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: MacArm64-NDLL
path: ndll/MacArm64/

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: Windows-NDLL
path: ndll/Windows/

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: Windows64-NDLL
path: ndll/Windows64/

# - uses: actions/download-artifact@v3
# - uses: actions/download-artifact@v4
# with:
# name: Windows-Hashlink
# path: templates/bin/hl/Windows

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: Windows64-Hashlink
path: templates/bin/hl/Windows64

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: Mac64-Hashlink
path: templates/bin/hl/Mac64

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: Linux64-Hashlink
path: templates/bin/hl/Linux64
Expand All @@ -516,7 +516,7 @@ jobs:
run: |
haxe svg.hxml

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: lime-haxelib
path: |
Expand All @@ -531,7 +531,7 @@ jobs:
runs-on: ubuntu-20.04
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: krdlab/setup-haxe@v1
with:
Expand All @@ -551,7 +551,7 @@ jobs:
run: |
haxe build.hxml

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: lime-docs
path: docs/pages
Expand All @@ -561,7 +561,7 @@ jobs:
runs-on: ubuntu-20.04
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: krdlab/setup-haxe@v1
with:
Expand Down Expand Up @@ -604,7 +604,7 @@ jobs:
haxe-version: [4.0.5, 4.1.5, 4.2.5, 4.3.1]
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true

Expand Down Expand Up @@ -674,7 +674,7 @@ jobs:
run: |
haxelib git lime-samples https://github.com/openfl/lime-samples --quiet

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: lime-haxelib
path: lime-haxelib
Expand Down Expand Up @@ -724,7 +724,7 @@ jobs:
run: |
haxelib git lime-samples https://github.com/openfl/lime-samples --quiet

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: lime-haxelib
path: lime-haxelib
Expand Down Expand Up @@ -753,7 +753,7 @@ jobs:
runs-on: ubuntu-20.04
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: krdlab/setup-haxe@v1
with:
Expand Down Expand Up @@ -831,7 +831,7 @@ jobs:
run: |
haxelib git lime-samples https://github.com/openfl/lime-samples --quiet

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: lime-haxelib
path: lime-haxelib
Expand Down
8 changes: 4 additions & 4 deletions externs/air/flash/net/Socket.hx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ extern class Socket extends flash.events.EventDispatcher implements flash.utils.
@:require(flash11) var bytesPending(default, never):UInt;
var connected(default, never):Bool;
var endian:flash.utils.Endian;
var objectEncoding:UInt;
var objectEncoding:#if openfl openfl.net.ObjectEncoding #else UInt #end;
@:require(flash10) var timeout:UInt;
#if air
var localAddress(default, never):String;
Expand All @@ -20,7 +20,7 @@ extern class Socket extends flash.events.EventDispatcher implements flash.utils.
@:flash.property @:require(flash11) var bytesPending(get, never):UInt;
@:flash.property var connected(get, never):Bool;
@:flash.property var endian(get, set):flash.utils.Endian;
@:flash.property var objectEncoding(get, set):UInt;
@:flash.property var objectEncoding(get, set):#if openfl openfl.net.ObjectEncoding #else UInt #end;
@:flash.property @:require(flash10) var timeout(get, set):UInt;
#if air
@:flash.property var localAddress(get, never):String;
Expand Down Expand Up @@ -65,7 +65,7 @@ extern class Socket extends flash.events.EventDispatcher implements flash.utils.
private function get_bytesPending():UInt;
private function get_connected():Bool;
private function get_endian():flash.utils.Endian;
private function get_objectEncoding():UInt;
private function get_objectEncoding():#if openfl openfl.net.ObjectEncoding #else UInt #end;
private function get_timeout():UInt;
#if air
private function get_localAddress():String;
Expand All @@ -74,7 +74,7 @@ extern class Socket extends flash.events.EventDispatcher implements flash.utils.
private function get_remotePort():Int;
#end
private function set_endian(value:flash.utils.Endian):flash.utils.Endian;
private function set_objectEncoding(value:UInt):UInt;
private function set_objectEncoding(value:#if openfl openfl.net.ObjectEncoding #else UInt #end):#if openfl openfl.net.ObjectEncoding #else UInt #end;
private function set_timeout(value:UInt):UInt;
#end
}
2 changes: 1 addition & 1 deletion src/lime/_internal/backend/html5/HTML5Thread.hx
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ abstract Message(Dynamic) from Dynamic to Dynamic
// Skip `null` for obvious reasons.
return object == null
// No need to preserve a primitive type.
|| !#if (haxe_ver >= 4.2) Std.isOfType #else untyped __js__ #end (object, Object)
|| !#if (haxe_ver >= 4.2) Std.isOfType #else Std.is #end (object, Object)
// Objects with this field have been deliberately excluded.
|| Reflect.field(object, SKIP_FIELD) == true
// A `Uint8Array` (the type used by `haxe.io.Bytes`) can have
Expand Down
4 changes: 2 additions & 2 deletions src/lime/_internal/format/LZMA.hx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class LZMA
#end
#elseif js
var data = untyped #if haxe4 js.Syntax.code #else __js__ #end ("LZMA.compress")(new UInt8Array(bytes.getData()), 5);
if (data is String)
if ((data is String))
{
return Bytes.ofString(data);
}
Expand Down Expand Up @@ -60,7 +60,7 @@ class LZMA
#end
#elseif js
var data = untyped #if haxe4 js.Syntax.code #else __js__ #end ("LZMA.decompress")(new UInt8Array(bytes.getData()));
if (data is String)
if ((data is String))
{
return Bytes.ofString(data);
}
Expand Down
Loading
Loading