Skip to content

Commit 625a0e1

Browse files
committed
Code whitespace and newline cleanup
Signed-off-by: Matthias Kretz <[email protected]>
1 parent f264746 commit 625a0e1

File tree

2 files changed

+18
-21
lines changed

2 files changed

+18
-21
lines changed

src/algorithms.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@
403403
\begin{codeblock}
404404
template<class T>
405405
class ordered_update_t {
406-
T& ref_; // exposition only
406+
T& ref_; // \expos
407407
public:
408408
ordered_update_t(T& loc) noexcept
409409
: ref_(loc) {}

src/taskblock.tex

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828

2929
class task_cancelled_exception : public exception
3030
{
31-
public:
32-
task_cancelled_exception() noexcept;
33-
virtual const char* what() const noexcept override;
31+
public:
32+
task_cancelled_exception() noexcept;
33+
virtual const char* what() const noexcept override;
3434
};
3535
}
3636
}
@@ -61,18 +61,18 @@
6161

6262
class task_block
6363
{
64-
private:
65-
~task_block();
64+
private:
65+
~task_block();
6666

67-
public:
68-
task_block(const task_block&) = delete;
69-
task_block& operator=(const task_block&) = delete;
70-
void operator&() const = delete;
67+
public:
68+
task_block(const task_block&) = delete;
69+
task_block& operator=(const task_block&) = delete;
70+
void operator&() const = delete;
7171

72-
template<class F>
73-
void run(F&& f);
72+
template<class F>
73+
void run(F&& f);
7474

75-
void wait();
75+
void wait();
7676
};
7777
}
7878
}
@@ -202,9 +202,9 @@
202202
\begin{example}
203203
\begin{codeblock}
204204
define_task_block([&](auto& tb) {
205-
tb.run([&]{ process(a, w, x); }); // Process a[w] through a[x]
206-
if (y < x) tb.wait(); // Wait if overlap between [w,x) and [y,z)
207-
process(a, y, z); // Process a[y] through a[z]
205+
tb.run([&]{ process(a, w, x); }); // Process a[w] through a[x]
206+
if (y < x) tb.wait(); // Wait if overlap between [w,x) and [y,z)
207+
process(a, y, z); // Process a[y] through a[z]
208208
});
209209
\end{codeblock}
210210
\end{example}
@@ -214,11 +214,8 @@
214214
\rSec1[parallel.task_block.define_task_block]{Function template \tcode{define_task_block}}
215215

216216
\begin{itemdecl}
217-
template<class F>
218-
void define_task_block(F&& f);
219-
220-
template<class F>
221-
void define_task_block_restore_thread(F&& f);
217+
template<class F> void define_task_block(F&& f);
218+
template<class F> void define_task_block_restore_thread(F&& f);
222219
\end{itemdecl}
223220

224221
\begin{itemdescr}

0 commit comments

Comments
 (0)