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

Work on Execution #375

Merged
merged 1 commit into from
Jun 30, 2017
Merged

Conversation

josesimoes
Copy link
Member

The CLR Interpreter runs on it's own OS thread (then jumping from one nanoFramework thread to the next) it leaves no time slot for other OS threads to execute on OSes that relly on cooperative execution (menaning that a thread has to relinquish execution control to the OS so other threads can run). Because of this, on nF thread switching, there is a call to NANOCLR_RELINQUISHEXECUTIONCONTROL to allow this to happen on OSes that require that. ChibiOS is one of those when it's running on cooperative mode.

Signed-off-by: José Simões jose.simoes@eclo.solutions

The CLR Interpreter runs on it's own OS thread (then jumping from one nanoFramework thread to the next) it leaves no time slot for other OS threads to execute on OSes that relly on cooperative execution (menaning that a thread has to relinquish execution control to the OS so other threads can run). Because of this, on nF thread switching, there is a call to NANOCLR_RELINQUISHEXECUTIONCONTROL to allow this to happen on OSes that require that. ChibiOS is one of those when it's running on cooperative mode.

Signed-off-by: José Simões <jose.simoes@eclo.solutions>
@josesimoes josesimoes added Area: Interpreter Everything related with the interpreter, execution engine and such Series: STM32xx Everything related specifically with STM32 targets Platform: Virtual Device & WIN32 Everything related specifically with WIN32 and .NET tool builds Type: enhancement labels Jun 30, 2017
@nfbot
Copy link
Member

nfbot commented Jun 30, 2017

Hi @josesimoes,

I'm nanoFramework bot.
Thank you for your contribution!

A human will be reviewing it shortly. 😉

@josesimoes josesimoes merged commit 675e79e into nanoframework:master Jun 30, 2017
@josesimoes josesimoes deleted the work-on-execution branch June 30, 2017 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Interpreter Everything related with the interpreter, execution engine and such Platform: Virtual Device & WIN32 Everything related specifically with WIN32 and .NET tool builds Series: STM32xx Everything related specifically with STM32 targets Type: enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants