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

need argument support to libco #51

Closed
bitraft opened this issue May 13, 2020 · 1 comment
Closed

need argument support to libco #51

bitraft opened this issue May 13, 2020 · 1 comment

Comments

@bitraft
Copy link

bitraft commented May 13, 2020

It will be great to have one argument pass into the fiber entry function like this:

cothread_t co_create(unsigned int size, void (*)(void*) callback, void* user_data);

void my_co(void* user_data){
      
}

struct my_data_t my_data = malloc(sizeof(struct my_data_t ));
cothread_t* handle = co_create(1024*1024, my_co, my_data);

Windows Fiber already has it. Is there any one can give some tips, about the x86_64 asm change for this?

@Screwtapello
Copy link
Contributor

Closing in favour of higan-emu/libco#16.

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