Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfa83cb0

Browse files
committed
8.0.4
1 parent7204833 commitfa83cb0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+891
-822
lines changed

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ src/qxk/qxk.cpp
4949
src/qxk/qxk_mutex.cpp
5050
src/qxk/qxk_sema.cpp
5151
src/qxk/qxk_xthr.cpp
52+
zephyr/qutest_port.cpp
5253

5354
ports/arm-cm/qxk/
5455
ports/arm-cm/qutest/

‎3rd_party‎

‎examples‎

Submoduleexamples updated193 files

‎include/qequeue.hpp‎

Lines changed: 19 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -51,31 +51,8 @@ class QEvt; // forward declaration
5151
namespaceQP {
5252

5353
classQEQueue {
54-
private:
55-
QEvtconst *volatile m_frontEvt;
56-
QEvtconst * * m_ring;
57-
QEQueueCtr m_end;
58-
QEQueueCtrvolatile m_head;
59-
QEQueueCtrvolatile m_tail;
60-
QEQueueCtrvolatile m_nFree;
61-
QEQueueCtr m_nMin;
62-
63-
// friends...
64-
friendclassQActive;
65-
friendclassQTicker;
66-
friendclassQXMutex;
67-
friendclassQXThread;
68-
6954
public:
70-
QEQueue()noexcept
71-
: m_frontEvt(nullptr),
72-
m_ring(nullptr),
73-
m_end(0U),
74-
m_head(0U),
75-
m_tail(0U),
76-
m_nFree(0U),
77-
m_nMin(0U)
78-
{}
55+
QEQueue()noexcept;
7956
voidinit(
8057
QEvtconst * *const qSto,
8158
std::uint_fast16_tconst qLen)noexcept;
@@ -96,13 +73,31 @@ class QEQueue {
9673
boolisEmpty()constnoexcept {
9774
return m_frontEvt ==nullptr;
9875
}
76+
QEvtconst *peekFront()constnoexcept {
77+
return m_frontEvt;
78+
}
9979

10080
private:
81+
QEvtconst *volatile m_frontEvt;
82+
QEvtconst * * m_ring;
83+
QEQueueCtr m_end;
84+
QEQueueCtrvolatile m_head;
85+
QEQueueCtrvolatile m_tail;
86+
QEQueueCtrvolatile m_nFree;
87+
QEQueueCtr m_nMin;
88+
10189
QEQueue(QEQueueconst & other) =delete;
10290
QEQueue &operator=(QEQueueconst & other) =delete;
10391
voidpostFIFO_(
10492
QEvtconst *const e,
10593
voidconst *const sender);
94+
95+
// friends...
96+
friendclassQActive;
97+
friendclassQTicker;
98+
friendclassQXMutex;
99+
friendclassQXThread;
100+
friendclassQS;
106101
};// class QEQueue
107102

108103
}// namespace QP

‎include/qk.hpp‎

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,16 @@ extern "C" {
4141
classQK_Attr {
4242
public:
4343
QP::QPSet readySet;
44-
std::uint_fast8_t actPrio;
45-
std::uint_fast8_t nextPrio;
46-
std::uint_fast8_t actThre;
47-
std::uint_fast8_t lockCeil;
48-
std::uint_fast8_t intNest;
44+
std::uint8_t actPrio;
45+
std::uint8_t nextPrio;
46+
std::uint8_t actThre;
47+
std::uint8_t lockCeil;
48+
std::uint8_t intNest;
4949
};// class QK_Attr
5050

5151
extern QK_Attr QK_priv_;
5252

53-
std::uint_fast8_tQK_sched_()noexcept;
54-
55-
std::uint_fast8_tQK_sched_act_(
56-
QP::QActiveconst *const act,
57-
std::uint_fast8_tconst pthre_in)noexcept;
58-
59-
voidQK_activate_()noexcept;
53+
// NOTE: the extern "C" QK functions already declared in qp.hpp
6054

6155
}// extern "C"
6256

‎include/qmpool.hpp‎

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,7 @@ class QMPool {
7676
QMPoolCtr m_nMin;
7777

7878
public:
79-
QMPool()
80-
: m_start(nullptr),
81-
m_end(nullptr),
82-
m_freeHead(nullptr),
83-
m_blockSize(0U),
84-
m_nTot(0U),
85-
m_nFree(0U),
86-
m_nMin(0U)
87-
{}
79+
QMPool()noexcept;
8880
voidinit(
8981
void *const poolSto,
9082
std::uint_fast32_tconst poolSize,
@@ -113,13 +105,16 @@ class QMPool {
113105
QMPool(QEQueueconst & other) =delete;
114106
QMPool &operator=(QMPoolconst & other) =delete;
115107

108+
// friends...
109+
friendclassQS;
110+
116111
public:
117112

118113
#ifdef QF_ISR_API
119114
void *getFromISR(
120115
std::uint_fast16_tconst margin,
121116
std::uint_fast8_tconst qsId)noexcept;
122-
#endif// def QF_ISR_API
117+
#endif
123118

124119
#ifdef QF_ISR_API
125120
voidputFromISR(

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp