Andrea Ciliberti
6f15e54da9
Fixed nits and such
3 years ago
Andrea Ciliberti
9da34bd050
Using Mutexes and ServiceHandler
3 years ago
Andrea Ciliberti
dda1706dc9
Missed ordering changes
3 years ago
Andrea Ciliberti
447ef1eaa2
Fixed typos, nits and small issues
3 years ago
Meziu
df845c5b8a
Merge pull request #46 from Meziu/feature/std-threads
...
Use std threads support
3 years ago
Andrea Ciliberti
060b14f068
Fixed duplicate services and constistency in naming
3 years ago
Meziu
3dedcd9809
Merge pull request #47 from ian-h-chamberlain/file-explorer/read-file-contents
...
Add support for reading files to file-explorer
3 years ago
Mark Drobnak
8113950f4b
Merge branch 'master' into feature/std-threads
...
# Conflicts:
# ctru-rs/src/services/ps.rs
3 years ago
Meziu
13eaba92e5
Merge pull request #49 from Meziu/fix/automatic-ps
...
Static init of the PS service
3 years ago
Andrea Ciliberti
2f82d867c0
Typo in hashmaps example
3 years ago
Andrea Ciliberti
c9e67cdf33
Removed Ps struct references in examples
3 years ago
Andrea Ciliberti
ea854215f8
Static init of the PS service
3 years ago
AzureMarker
e04eb50559
Remove thread list feature from thread-info example
...
The thread list syscall has a bug which causes the process to become a
zombie. See #48 .
3 years ago
AzureMarker
ad444a51c9
Rename ThreadBuilderExt to BuilderExt
3 years ago
AzureMarker
c787475e55
Rename "ideal_processor" to "processor_id"
3 years ago
AzureMarker
353b6c1c77
Add thread-info example
3 years ago
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