-
Notifications
You must be signed in to change notification settings - Fork 823
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Two basic structures for consideration
This is not a mergeable commit, as it includes modifications to things that should not be committed upstream.
- Loading branch information
Greg Link
committed
Jan 9, 2025
1 parent
485a02f
commit 80dab41
Showing
9 changed files
with
466 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/*************************************************************************** | ||
* Copyright (c) 2025 Microsoft Corporation | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the MIT License which is available at | ||
* https://opensource.org/licenses/MIT. | ||
* | ||
* SPDX-License-Identifier: MIT | ||
**************************************************************************/ | ||
|
||
/* Include necessary system files. */ | ||
|
||
#include "tx_api.h" | ||
#include "tx_trace.h" | ||
#include "tx_thread.h" | ||
#include "tx_initialize.h" | ||
|
||
/* Test only, demo of user extension. If the below is not defined, | ||
no need to include this function at all - it will never be called */ | ||
#ifdef TX_ENABLE_THREAD_SYSTEM_RESUME_EXTENSION | ||
|
||
UINT _tx_thread_system_resume_extension(TX_THREAD *thread_ptr) | ||
{ | ||
UINT status = 0; | ||
if (!thread_ptr->resume_recorded) | ||
{ | ||
thread_ptr->resume_recorded_at += 1; | ||
} | ||
|
||
/* Return completion status. */ | ||
return(status); | ||
} | ||
|
||
#endif //TX_ENABLE_THREAD_SYSTEM_RESUME_EXTENSION |
Oops, something went wrong.