Marc Rousavy and GitHub
f94cfbcbc8
feat: Allow ThreadPool to grow dynamically ( #345 )
...
* feat: Allow `ThreadPool` to grow dynamically
* feat: Add upper limit to `ThreadPool`
* fix: Fix potential race condition when ThreadPool gets destroyed while `addThread()`
2024-11-19 00:27:27 +01:00
Marc Rousavy and GitHub
8832bc5225
feat: Add new Promise<T> implementation for C++ ( #343 )
...
* feat: Create `Promise.hpp`
* feat: Add `JSIConverter+Exception`
* feat: Base for `Promise` and `Exception`
* fix: Implement Exception conversion
* Implement `Promise::awaitFuture`
* Revive `+Future`
* fix: Speed up creating `ThreadPool`
* fix: Make `+Future` also just use `+Promise` impl
* fix: Thread pool has 10 threads now.
* feat: Allow `ThreadPool` to grow dynamically
* chore: Format C++
2024-11-19 00:01:46 +01:00
Marc Rousavy and GitHub
57e7f26e61
fix: Make Nitro core compile on non-react-native environments ( #195 )
...
* fix: Make Nitro core compile on non-react-native environments
Guards `CallInvokerDispatcher` only if CallInvoker is available
* docs: Remove "Markdown page example" lol
2024-10-08 11:28:23 +02:00
Marc Rousavy and GitHub
03e1a716cf
fix: Fix NITRO_DEBUG debug/release preprocessor directive ( #132 )
...
* fix: Use `NITRO_DEBUG` flag to predictably run debug/release code
* feat: Add `NitroModules.buildType`
* fix: Style `debug` label
2024-09-16 16:18:05 +02:00
Marc Rousavy and GitHub
b4592244f2
feat: AnyMap for Kotlin/Android ( #60 )
...
* feat: Create `JAnyMap` base
* Update JNIOnLoad.cpp
* feat: Create `AnyMap` methods
* fix: Fix wrong name & format
* feat: `setNull`
* log dimmed
* Update README.md
2024-08-27 18:02:39 +02:00
Marc Rousavy and GitHub
e7b9f412eb
fix: Rewrite Logger to use platform NSLog / __android_log_print ( #54 )
...
* fix: Fix wrong include..?
* fix: Reimplement NitroLogger as a platform-specific logger
* fix: Copy args, and use proper tag
* fix: Fix sprintf crash because of wrong format argument
* fix: Fix Logger usage on iOS
2024-08-20 16:20:44 +02:00
Marc Rousavy and GitHub
acca5baaa4
fix: Replace #if DEBUG with #ifndef NDEBUG to make it work on Android ( #53 )
...
* fix: Fix `hasNativeState` checks and provide better errors
* fix: Replace `#if DEBUG` with `#ifndef NDEBUG` to make it work on Android
2024-08-20 15:30:03 +02:00
Marc Rousavy
882054e587
feat: Support JSIConverter<AnyMap>::canConvert (+ AnyValue and unordered_map<string, T>)
2024-08-07 13:56:10 +02:00
Marc Rousavy
da52559049
fix: Fix some headers
2024-08-05 17:31:09 +02:00
Marc Rousavy
1140d5e693
Update ThreadPool.hpp
2024-08-05 16:37:17 +02:00
Marc Rousavy
ee1e7c9646
fix: Make ThreadPool only two Threads big
2024-08-05 16:36:57 +02:00
Marc Rousavy
950ff037fc
feat: Use efficient ThreadPool to speed up Promise creation
2024-08-05 16:32:55 +02:00
Marc Rousavy
a522f09327
fix: Put template<...> on a separate line
2024-08-02 12:37:03 +02:00
Marc Rousavy
9d69ba04ab
chore: Run clang format
2024-07-31 17:39:56 +02:00
Marc Rousavy
bc26711f21
replace is_same_v<T, void> -> is_void_v<T>
2024-07-30 13:51:39 +02:00
Marc Rousavy
fff62048f7
fix: Fix void comparison
2024-07-30 13:50:23 +02:00
Marc Rousavy
039f745e6a
fix: Try fixing runAsyncAwaitable
2024-07-30 13:43:54 +02:00
Marc Rousavy
404b125b8f
fix: Kinda builds?
2024-07-30 13:31:22 +02:00
Marc Rousavy
2ee6e14da7
fix: Fix dispatcher lambda not mutable on promise
2024-07-30 13:00:46 +02:00
Marc Rousavy
e6f84bee16
fix: Fix JS callbacks not using Dispatcher!!!!!
...
lol this broke a lot I cant believe I didnt catch this
2024-07-30 12:17:22 +02:00
Marc Rousavy
3e0279a71f
feat: Create JSICacheReference for safer cache access
2024-07-30 11:41:01 +02:00
Marc Rousavy
6b15467af8
Some final declarations
2024-07-18 01:30:33 +02:00
Marc Rousavy
4adc79dcfc
Rename to GetRuntimeID
2024-07-18 00:22:49 +02:00
Marc Rousavy
f6853f7055
feat: Log runtime thread ID
2024-07-18 00:20:56 +02:00
Marc Rousavy
7bc2767348
fix: Move to namespace margelo::nitro
2024-07-17 21:49:11 +02:00
Marc Rousavy
a6b69b309a
perf: Speed up Dispatcher get calls
2024-06-23 12:27:04 +02:00
Marc Rousavy
2bc02c0f6f
A ton of improvements around jsi::Runtime safe code.
2024-06-20 16:20:13 +02:00
Marc Rousavy
caf953f552
fix imports
2024-06-20 10:47:50 +02:00
Marc Rousavy
84b995e4eb
Rename to .hpp
2024-06-20 10:41:09 +02:00
Marc Rousavy
b7f40384e1
Add Dispatcher
2024-06-19 19:59:03 +02:00