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
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
Andrea Ciliberti
b835695b0b
Changed example names to keep the standard
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
Andrea Ciliberti
8ed7c97a5d
Simple functions added to Ps and HashMap example
3 years ago
AzureMarker
88315aec61
Group together thread info calls
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
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
c13c1c8c68
Run executor thread on system core
3 years ago
Andrea Ciliberti
fbd873432c
Revert "Removed link field in ctru-sys"
...
This reverts commit c59de27f85
.
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
Ian Chamberlain
0326e9ea9d
Address review comments for Debug impl
3 years ago
AzureMarker
aebf347a00
Fix clippy warning about unused screen field
3 years ago
AzureMarker
4dd2196971
Add a basic futures example
3 years ago
Ian Chamberlain
92c37b00b7
Add translations of result macros + debug impl
3 years ago
AzureMarker
1402dacc5f
Update libc to the upstream
...
Our PR merged.
3 years ago
Ian Chamberlain
9aac807407
Address review comments
...
Keep RawFrameBuffer alive as long as the Screen is, to ensure the Gfx is
not dropped while the FrameBuffer is alive.
3 years ago
Ian Chamberlain
98e026373e
Use a struct to represent the raw frame buffer
...
I chose the name RawFrameBuffer in case we'd like to provide a "safer"
alternative API at some point.
3 years ago
Andrea Ciliberti
9ea0232902
Removed ANSI formatting from panic hook
3 years ago
Ian Chamberlain
be94b04d1d
Use better image conversion command
...
This looks more correct on the device to my eye and is a bit simpler.
3 years ago
AzureMarker
d3df72e22f
Prevent popping the last segment of a path (ex. / or romfs:/)
3 years ago
AzureMarker
f87e2ad0f7
Move romfs folder into examples folder
3 years ago
Ian Chamberlain
be4784e3bc
Use bottom-only framebuffer API for "left"
3 years ago
Ian Chamberlain
793a95073b
First pass of graphics bitmap example
3 years ago
Andrea Ciliberti
ea80b57880
Added check for Console existence on panic
3 years ago