Skip to content
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

Example of usage #7

Open
Pombal opened this issue Oct 7, 2020 · 2 comments
Open

Example of usage #7

Pombal opened this issue Oct 7, 2020 · 2 comments

Comments

@Pombal
Copy link

Pombal commented Oct 7, 2020

Hey, could you please provide an example that shows correct initialization of HostConfiguration and ServiceConfiguration, and the function calls a Host and a Service should make after initialization to make good use of binderoo?

Especially interested in how to setup the create_thread variable in ServiceConfiguration which makes use of fastdelegate. I'm trying to map it to Windows CreateThread but it's not a 1:1 mapping.

@GooberMan
Copy link
Owner

Might take a little while to get this, it's been quite busy.

I wouldn't expect CreateThread to be a 1:1 mapping anyway. If you ever get this running on 32-bit systems, the Windows ABI calling conventions are entirely different to stdcall etc. You'll need a wrapper at a minimum for cross-platform development, which is a consideration for Binderoo as it was originally designed to work with a C++ game engine.

@Pombal
Copy link
Author

Pombal commented Oct 7, 2020

I understand why it doesn't map 1:1. It's the integration with fastdelegate that makes it non-trivial (it's not just a function pointer with a void ptr to data.

No problem on the full example but could you please provide some explanation or sample code for what is expected in CreateThread with the fastdelegate? That should be enough to unblock me.

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