AzureMarker
2d49cd91ec
Use the new current_processor std function (in the os module)
...
This lets us delete the ctru-rs thread module.
3 years ago
Andrea Ciliberti
d9dd716a82
Typo in romfs example
3 years ago
Andrea Ciliberti
c79aeeac76
Basic port of the romfs example
3 years ago
AzureMarker
ac68bf099d
Use the new current_priority std function (in the os module)
3 years ago
AzureMarker
e891b8839b
Use the new way of getting the priority value
3 years ago
Ian Chamberlain
74992326e6
Use `fs::read_to_string()` and add st_mode
...
Just for fun, display file mode as well as size, and simplify code with
`fs::read_to_string()`, which works with the corresponding libc changes.
3 years ago
AzureMarker
debf941bc3
Rename affinity to "ideal processor"
3 years ago
Ian Chamberlain
6b409cdcae
Add support for reading files to file-explorer
3 years ago
AzureMarker
12ba4278c6
Remove stack size overrides now that std defaults to 2MiB
3 years ago
AzureMarker
15763bac1d
Use the new ThreadBuilderExt trait
3 years ago
AzureMarker
e2a0e61742
Fix HashMap test referring to old thread builder
3 years ago
AzureMarker
e986a5a1da
Remove sysconf stub since it's now implemented in linker-fix
3 years ago
AzureMarker
a6b102f156
Update to use std threads
...
Yay! Deleting code is nice.
3 years ago
Meziu
56f4b3352a
Merge pull request #41 from ian-h-chamberlain/testing/custom-test-framework
...
Use custom test framework to `cargo test` !
3 years ago
Ian Chamberlain
91c2c587d9
Remove unnecessary escape characters
3 years ago
Ian Chamberlain
6beed43fe3
Address review comments
...
- Switch to single-threaded test and fix thread-local hashmap issue.
- Use apt loop instead of `loop {}` , and wait for vblank.
- Remove extraneous pthread stub.
3 years ago
Ian Chamberlain
b839fc3330
Merge remote-tracking branch 'upstream/master' into testing/custom-test-framework
3 years ago
Andrea Ciliberti
b835695b0b
Changed example names to keep the standard
3 years ago
Meziu
c01fa4de30
Merge pull request #42 from Meziu/example/futures-tokio
...
Basic Tokio example
3 years ago
AzureMarker
fd9b58498d
IT WORKS
...
Needs some fixes in pthread-3ds.
Made the log less noisy and added some comments.
3 years ago
AzureMarker
8bf2b276cf
Turn off randomness in tokio::select when more than one future is ready
3 years ago
AzureMarker
282044068b
Use the new Ps struct
3 years ago
AzureMarker
368cf8bc0c
Increase stack size and add more detailed logs
...
The default stack size is super small: 4096 bytes. This was causing the
stack to overflow during normal processing. This was also not detected,
so it corrupted the heap and led to odd behavior or aborts.
See this long comment for more details and explanation:
https://github.com/Meziu/ctru-rs/pull/42#issuecomment-1030724973
I bumped the stack size to 2MiB, which is the default for Rust's std
threads. I have a few ideas to fix the underlying issues here (add a
guard struct like std does for stack overflows, move 3ds-specific stuff
like affinity into std but keep the impl in ctru-rs via linker hacks).
Also added some more logging.
3 years ago
AzureMarker
133df927c0
Add thread locals example to make sure they work
3 years ago
AzureMarker
5b75bf5e83
Merge branch 'master' into example/futures-tokio
3 years ago
Andrea Ciliberti
8ed7c97a5d
Simple functions added to Ps and HashMap example
3 years ago
Andrea Ciliberti
ab728c75c1
Merge branch 'feature/ps-module' of https://github.com/ian-h-chamberlain/ctru-rs
3 years ago
Meziu
24ec4f2fc1
Merge pull request #36 from AzureMarker/example/futures-basic
...
Add a basic futures example
3 years ago
AzureMarker
88315aec61
Group together thread info calls
3 years ago
AzureMarker
56b056d721
Merge branch 'master' into example/futures-tokio
3 years ago
Andrea Ciliberti
54085101f3
Bumped ctru-sys to latest libctru version
3 years ago
Meziu
2ed36b9a97
Merge pull request #40 from Meziu/fix/duplicate-dependencies
3 years ago
Ian Chamberlain
75727fd3e9
Fix build and tweak some options
3 years ago
AzureMarker
c061240dfc
Add futures-tokio-basic example (not working yet)
...
There's some issues with the example right now. See
https://github.com/Meziu/ctru-rs/pull/36#issuecomment-1028617954
3 years ago
Ian Chamberlain
4ea3ab4769
First pass of using custom test runner
...
It works!
3 years ago
AzureMarker
82eded005e
Remove duplicate dependencies by patching, and add back links field
...
We don't want duplicate ctru-sys crates in the dependency graph. Same
for libc. We can patch them here to avoid any issues.
Now that we don't have duplicate ctru-sys crates, we can add back the
links field. This field is important because it warns us when there are
two crates linking to the same library (ex. duplicate ctru-sys crates).
3 years ago
Ian Chamberlain
cb15f99486
Add docstring for PS module
3 years ago
Ian Chamberlain
f2f64da50a
Add basic Ps module which only has init()
3 years ago
AzureMarker
39adc8590e
Enable the system core by setting our time limit percentage
3 years ago
AzureMarker
e4d76ea4e7
Merge branch 'master' into example/futures-basic
3 years ago
AzureMarker
c13c1c8c68
Run executor thread on system core
3 years ago
Andrea Ciliberti
77f673e9d9
Removed link field in ctru-sys
3 years ago
Andrea Ciliberti
fbd873432c
Revert "Removed link field in ctru-sys"
...
This reverts commit c59de27f85
.
3 years ago
Andrea Ciliberti
c3d19204b9
Merge branch 'master' of https://github.com/Meziu/ctru-rs
3 years ago
AzureMarker
8835951f7d
Fix clippy warning about unused screen field
3 years ago
Andrea Ciliberti
c59de27f85
Removed link field in ctru-sys
3 years ago
Meziu
c39454f57a
Merge pull request #35 from ian-h-chamberlain/errors/split-and-debug
3 years ago
Ian Chamberlain
0326e9ea9d
Address review comments for Debug impl
3 years ago
Meziu
9f0984a455
Merge pull request #37 from AzureMarker/fix/unused-screen
3 years ago
AzureMarker
aebf347a00
Fix clippy warning about unused screen field
3 years ago