Skip to content

Option for platform without threads, mutexes #704

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

Open
mincequi opened this issue Feb 11, 2025 · 4 comments
Open

Option for platform without threads, mutexes #704

mincequi opened this issue Feb 11, 2025 · 4 comments

Comments

@mincequi
Copy link

Hi @victimsnino ,
it's been a while since bothering you with further requests. So, i am back 😉

Recently, i started developing on a raspberry pi pico 2 and i would love to use rpp for this. Unfortunately, this platform is missing posix threads, as well as mutexes, etc. Can you imagine a version of this lib without those things?
Besides that, it seems possible, that rpp is usable on that platform.

Regards 😀

@victimsnino
Copy link
Owner

Hey @mincequi ! Yeah, you are welcome =)
Would it be enough just to have limited functionality just by splitting headers and not providing operators/functionality relying on threads/mutexes? For example, just provide observable/observer/filter/map and etc? Or do you expect something more? I mean... if yes, then technically it is possible to use it "as is"?

@mincequi
Copy link
Author

mincequi commented Feb 11, 2025

Hey @victimsnino,
of course splitting functionality is perfectly fine for me. So, only "immediate execution" operators would work and is ok for me :)
One could later check, if scheduling is somehow possible on that platform.

edit: i already tried to only include the (few) things i need, but utils.hpp gets included which includes the mutex header.

@victimsnino
Copy link
Owner

Hey @mincequi , it was a short break for me from RPP, now i'm ready to back to development. Does this issue still relevant to you?

@mincequi
Copy link
Author

Hi @victimsnino ,
currently, i have a custom implementation to emit events from an object and i do not have an urgent need for an RPP port.
There is also an arduino impl for Rx: https://github.com/luisllamasbinaburo/Arduino-ReactiveArduino
Maybe this can also help.

One could just keep that in mind, if you ever plan to port this to a non-threaded platform.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants