!5932 修复游标表达式+并行游标的若干问题
Merge pull request !5932 from chenxiaobin/fixSmpNotReset
This commit is contained in:
@ -837,8 +837,10 @@ public:
|
||||
{
|
||||
if (likely(u_sess != NULL)) {
|
||||
m_smpEnabled = u_sess->opt_cxt.smp_enabled;
|
||||
m_underCursor = u_sess->opt_cxt.is_under_cursor;
|
||||
} else {
|
||||
m_smpEnabled = true;
|
||||
m_underCursor = false;
|
||||
}
|
||||
}
|
||||
|
||||
@ -846,6 +848,7 @@ public:
|
||||
{
|
||||
if (u_sess != NULL) {
|
||||
u_sess->opt_cxt.smp_enabled = m_smpEnabled;
|
||||
u_sess->opt_cxt.is_under_cursor = m_underCursor;
|
||||
}
|
||||
}
|
||||
|
||||
@ -856,15 +859,24 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void UnderCursor()
|
||||
{
|
||||
if (likely(u_sess != NULL)) {
|
||||
u_sess->opt_cxt.is_under_cursor = true;
|
||||
}
|
||||
}
|
||||
|
||||
void ResetSmp()
|
||||
{
|
||||
if (u_sess != NULL) {
|
||||
u_sess->opt_cxt.smp_enabled = m_smpEnabled;
|
||||
u_sess->opt_cxt.is_under_cursor = m_underCursor;
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
bool m_smpEnabled;
|
||||
bool m_underCursor;
|
||||
};
|
||||
|
||||
#ifdef USE_SPQ
|
||||
|
||||
Reference in New Issue
Block a user