Changeset View
Changeset View
Standalone View
Standalone View
src/buffer/katetextbuffer.h
Show All 15 Lines | |||||
16 | * along with this library; see the file COPYING.LIB. If not, write to | 16 | * along with this library; see the file COPYING.LIB. If not, write to | ||
17 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
18 | * Boston, MA 02110-1301, USA. | 18 | * Boston, MA 02110-1301, USA. | ||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | #ifndef KATE_TEXTBUFFER_H | 21 | #ifndef KATE_TEXTBUFFER_H | ||
22 | #define KATE_TEXTBUFFER_H | 22 | #define KATE_TEXTBUFFER_H | ||
23 | 23 | | |||
24 | #include <atomic> | ||||
25 | | ||||
24 | #include <QObject> | 26 | #include <QObject> | ||
25 | #include <QString> | 27 | #include <QString> | ||
26 | #include <QVector> | 28 | #include <QVector> | ||
27 | #include <QSet> | 29 | #include <QSet> | ||
28 | #include <QTextCodec> | 30 | #include <QTextCodec> | ||
29 | 31 | | |||
30 | #include <ktexteditor/document.h> | 32 | #include <ktexteditor/document.h> | ||
31 | 33 | | |||
▲ Show 20 Lines • Show All 558 Lines • ▼ Show 20 Line(s) | 570 | private: | |||
590 | * Number of lines in buffer | 592 | * Number of lines in buffer | ||
591 | */ | 593 | */ | ||
592 | int m_lines; | 594 | int m_lines; | ||
593 | 595 | | |||
594 | /** | 596 | /** | ||
595 | * Last used block in the buffer. Is used for speeding up blockForLine. | 597 | * Last used block in the buffer. Is used for speeding up blockForLine. | ||
596 | * May contain invalid index, must be checked before using. | 598 | * May contain invalid index, must be checked before using. | ||
597 | */ | 599 | */ | ||
598 | mutable int m_lastUsedBlock; | 600 | mutable std::atomic<int> m_lastUsedBlock; | ||
599 | 601 | | |||
600 | /** | 602 | /** | ||
601 | * Revision of the buffer. | 603 | * Revision of the buffer. | ||
602 | */ | 604 | */ | ||
603 | qint64 m_revision; | 605 | qint64 m_revision; | ||
604 | 606 | | |||
605 | /** | 607 | /** | ||
606 | * Current number of running edit transactions | 608 | * Current number of running edit transactions | ||
▲ Show 20 Lines • Show All 89 Lines • Show Last 20 Lines |