30 Commits

Author SHA1 Message Date
Will MacCormack
e8c3fea70c
Add one more ifdef to allow POSIX_THREAD_ENABLE_NAMES off to compile (#4482) 2025-12-02 10:23:41 -08:00
Will MacCormack
b9a7059667
Set the Name of Fprime Tasks on Linux (#4428)
* Set the Name of Fprime Tasks on Linux

* prefix thread name w/ process name

* Revert "prefix thread name w/ process name"

This reverts commit 5867602f135c69022469c985b6de13458686e6a2.

* Add `setname` to spelling expected list

* Format My Changes

* Add in opt-out configuration

* Enable POSIX_THREADS_ENABLE_NAMES and fix ut

* Remove warning when flag set off

* UT thread names

* Add tmate session setup to build workflow

* Disable thread names on Ip UTs

* Use random thread ids in UTs

* Fix race condition

* Fix improper string set

---------

Co-authored-by: M Starch <LeStarch@googlemail.com>
Co-authored-by: Michael D Starch <Michael.D.Starch@jpl.nasa.gov>
2025-12-01 10:15:35 -08:00
Thomas Boyer-Chammard
578e61f1da
Format Os Module (#3959)
* Format Os module

* Add Os to format-check CI

* Remove double semi-colon
2025-07-31 15:40:30 -07:00
M Starch
292476b0c0
Purge PlatformIntType and PlatformUIntType (#3719)
* Purging PlatformIntType and PlatformUIntType

* CI fixes

* Fixing review requirements

* Fix CI error

* Fix CI cmake test regression

* Fix RHEL8 regression
2025-06-16 17:44:24 -07:00
Mishaal
eea6aca8fa
Switch the type of the Task priority to FwTaskPriorityType (#3617)
* Change the type of the Task priority to FwTaskPriorityType

* Fix missed UT arg update

---------

Co-authored-by: Mishaal Aleem <aleem@fprime-fsw-0.jpl.nasa.gov>
Co-authored-by: Rob Bocchino <bocchino@jpl.nasa.gov>
2025-05-21 14:24:49 -07:00
Cel Skeggs
ac2c9941d0
Fix Os/Posix/Task.cpp compilation with musl (#3145) 2025-01-21 13:02:07 -08:00
M Starch
de8dd0d782
Fix posix Task for cases where _SC_PAGESIZE is undefined (#2995) 2024-10-29 14:28:51 -07:00
M Starch
c548b53a93
Making Os::Task::delay use the singleton pattern (#2954)
* Making Os::Task::delay use the singleton pattern

* Add Os::Task::init call to Os::init

---------

Co-authored-by: thomas-bc <49786685+thomas-bc@users.noreply.github.com>
2024-10-16 11:11:04 -07:00
M Starch
7159e7e347
Implements #2723: Adds Os::Console to replace Os::Log (#2831)
* Initial logging refactor - WIP

* Removing LogAssert as it is not used

* Working on Fw::Logger rewrite

* Initial Os::Console refactor

* Fixing Fw::Logger unit tests

* Fixing up UT build

* Adding Os::Stub::Console implementation

* Added interface UTs

* Adding posix console tests

* Fixing Linux errors

* Spelling

* Initial review requests

* Fixing RPI build issues

* Fixing codeql errors

* Fixing code QL

* Validating 'message' parameter
2024-08-15 18:53:36 -07:00
M Starch
640cf44c80
Os task refactor issue 2526 (#2672)
* Task refactor WIP -- compiles, but does not link

* Adding isCooperative method - WIP

* more WIP

* Initial Os::Posix::Task implementaion

* Adding makeDelegate functions; Fixing existing UTs

* Touching up comments

* Fixing Linux issues

* Adding type_traits import

* Removing TaskId and reworking handle storage

* Do not need to assert that a reference is not nullptr; compiler will get angry

* Starting UT development

* Start test works

* Working start and join rules; random test

* Adding state, delay, and count tests

* Adding stub interface tests

* sp

* Registry tests

* Fixing UTs

* Fixing PTHREAD_MIN_STACK for linux

* Missing newlines

* Fixing GPIO driver's task

* More build fixes

* Fixes for CI

* Correcting errors in GNU only code

* Fixing review comments

* Fixing sp

* Fixing RPI (again)

* Removing divergent open rules from interface testing. Fixes #2733

* Fixing review comments

---------

Co-authored-by: Kevin F. Ortega <kevin.f.ortega@jpl.nasa.gov>
2024-05-22 16:38:18 -07:00
Johan Bertrand
d5181219d0
Fixed conversion warnings on framework tests (#2606)
---------

Co-authored-by: Michael D Starch <Michael.D.Starch@jpl.nasa.gov>
2024-04-29 18:39:20 -07:00
Rob Bocchino
c02f35145e
Remove FPP dependencies on native int types (#2548)
* Remove FPP dependencies on native int types

* Revise FpConfig

* Fix errors in FpConfig

* Revise types

Add size type alias to Serializable
Remove type aliases for generated code
2024-03-04 19:34:23 -08:00
M Starch
4277591c70
Removing join after task failed creation. Fixes #1955 (#2367) 2023-11-13 15:05:57 -08:00
Adit Sachde
d5ad6b8315
Only support set_cpu_affinity with glibc (#1517) 2022-06-27 17:52:34 -07:00
M Starch
e0a1227cba lestarch: fixing NULL vs nullptr 2021-10-21 12:46:51 -07:00
M Starch
deac258c71 lestarch: removing memory leaks from unprioritized threads 2021-10-21 11:14:50 -07:00
M Starch
c263a81132 mstarch: merging devel into v3.0.0 2021-10-04 18:19:29 -07:00
Joshua Anderson
234bb5d176
Replace NULL with nullptr (#1049) 2021-09-29 09:04:52 -07:00
M Starch
a08dd11292
lestarch: reworking posix tasks (#992)
* lestarch: reworking posix tasks

* lestarch: correcting macOS issues; using deprecate instead of logger warnings

* lestarch: cleaning up task rework

* lestarch: fixing .start in UTs, docs, templates

* lestarch: cleaning-up non-default driver start calls

* lestarch: fixing stubbed implementation signature

* lestarch: moving reconnect up in order of args to socket read task
2021-09-16 15:33:47 -07:00
Joshua Anderson
3168f02cec Os: Convert C style casts to C++ style casts 2021-09-09 18:07:56 -07:00
Joshua Anderson
f1f5d499c0 Remove deprecated C style headers 2021-08-31 11:36:16 -07:00
Joshua Anderson
640412e999
Use exceptionless variant of new to properly handle allocation errors (#865) 2021-07-26 12:18:07 -07:00
Joshua Anderson
1b9c785ce6
Remove void from parameterless functions (#811) 2021-07-14 12:54:01 -07:00
Joshua Anderson
9d57d91794 Compile root cmake project with -Wextra 2021-06-22 08:19:55 -07:00
Joshua Anderson
48d355a0b1 Wrap raw task routine with an platform specific wrapper 2021-06-19 13:58:09 -07:00
Michael D Starch
c8eb946991 mstarch: last semmel C++ fixes 2020-08-05 12:13:35 -07:00
Celeste
f422a40cad added getOsIdentifier to Task.cpp Posix 2020-06-02 17:23:11 -04:00
Michael D Starch
6c4325ffbc mstarch: replacing printf with Fw::Logger where possible 2019-10-08 14:37:23 -07:00
Timothy Canham
84afa1b95e Merge Autocoder/framework/Gse fixes from helicopter 2019-02-27 10:56:36 -08:00
Timothy Canham
6d9c4c2d06 Initial check-in 2017-06-16 08:25:38 -07:00