Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
d0ff9a53
Commit
d0ff9a53
authored
Nov 18, 2019
by
Andris Mednis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typos in libcaf_core
parent
ef2e2fb2
Changes
26
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
37 additions
and
37 deletions
+37
-37
libcaf_core/caf/abstract_actor.hpp
libcaf_core/caf/abstract_actor.hpp
+2
-2
libcaf_core/caf/actor_system.hpp
libcaf_core/caf/actor_system.hpp
+2
-2
libcaf_core/caf/binary_deserializer.hpp
libcaf_core/caf/binary_deserializer.hpp
+1
-1
libcaf_core/caf/data_processor.hpp
libcaf_core/caf/data_processor.hpp
+1
-1
libcaf_core/caf/detail/delegate_serialize.hpp
libcaf_core/caf/detail/delegate_serialize.hpp
+1
-1
libcaf_core/caf/detail/invoke_result_visitor.hpp
libcaf_core/caf/detail/invoke_result_visitor.hpp
+1
-1
libcaf_core/caf/detail/set_thread_name.hpp
libcaf_core/caf/detail/set_thread_name.hpp
+1
-1
libcaf_core/caf/detail/type_list.hpp
libcaf_core/caf/detail/type_list.hpp
+2
-2
libcaf_core/caf/fused_downstream_manager.hpp
libcaf_core/caf/fused_downstream_manager.hpp
+1
-1
libcaf_core/caf/logger.hpp
libcaf_core/caf/logger.hpp
+3
-3
libcaf_core/caf/make_config_option.hpp
libcaf_core/caf/make_config_option.hpp
+1
-1
libcaf_core/caf/memory_managed.hpp
libcaf_core/caf/memory_managed.hpp
+1
-1
libcaf_core/caf/message.hpp
libcaf_core/caf/message.hpp
+1
-1
libcaf_core/caf/message_builder.hpp
libcaf_core/caf/message_builder.hpp
+1
-1
libcaf_core/caf/monitorable_actor.hpp
libcaf_core/caf/monitorable_actor.hpp
+1
-1
libcaf_core/caf/pec.hpp
libcaf_core/caf/pec.hpp
+1
-1
libcaf_core/caf/policy/work_stealing.hpp
libcaf_core/caf/policy/work_stealing.hpp
+3
-3
libcaf_core/caf/stateful_actor.hpp
libcaf_core/caf/stateful_actor.hpp
+1
-1
libcaf_core/caf/string_view.hpp
libcaf_core/caf/string_view.hpp
+2
-2
libcaf_core/src/actor_system_config.cpp
libcaf_core/src/actor_system_config.cpp
+3
-3
libcaf_core/src/config_option_set.cpp
libcaf_core/src/config_option_set.cpp
+1
-1
libcaf_core/src/logger.cpp
libcaf_core/src/logger.cpp
+1
-1
libcaf_core/src/message.cpp
libcaf_core/src/message.cpp
+1
-1
libcaf_core/src/replies_to.cpp
libcaf_core/src/replies_to.cpp
+1
-1
libcaf_core/src/scheduled_actor.cpp
libcaf_core/src/scheduled_actor.cpp
+2
-2
libcaf_core/src/string_view.cpp
libcaf_core/src/string_view.cpp
+1
-1
No files found.
libcaf_core/caf/abstract_actor.hpp
View file @
d0ff9a53
...
...
@@ -81,7 +81,7 @@ public:
virtual
void
attach
(
attachable_ptr
ptr
)
=
0
;
/// Convenience function that attaches the functor `f` to this actor. The
/// actor executes `f()` on exit or immediat
le
y if it is not running.
/// actor executes `f()` on exit or immediat
el
y if it is not running.
template
<
class
F
>
void
attach_functor
(
F
f
)
{
attach
(
attachable_ptr
{
new
detail
::
functor_attachable
<
F
>
(
std
::
move
(
f
))});
...
...
@@ -222,7 +222,7 @@ protected:
mutable
std
::
mutex
mtx_
;
private:
// prohibit copies, assigments, and heap allocations
// prohibit copies, assig
n
ments, and heap allocations
void
*
operator
new
(
size_t
);
void
*
operator
new
[](
size_t
);
abstract_actor
(
const
abstract_actor
&
)
=
delete
;
...
...
libcaf_core/caf/actor_system.hpp
View file @
d0ff9a53
...
...
@@ -121,7 +121,7 @@ public:
friend
class
net
::
middleman
;
friend
class
abstract_actor
;
/// The number of actors implictly spawned by the actor system on startup.
/// The number of actors implic
i
tly spawned by the actor system on startup.
static
constexpr
size_t
num_internal_actors
=
2
;
/// Returns the ID of an internal actor by its name.
...
...
@@ -594,7 +594,7 @@ private:
template
<
class
T
>
void
check_invariants
()
{
static_assert
(
!
std
::
is_base_of
<
prohibit_top_level_spawn_marker
,
T
>::
value
,
"This actor type cannot be spawned through
t
an actor system. "
"This actor type cannot be spawned through an actor system. "
"Probably you have tried to spawn a broker or opencl actor."
);
}
...
...
libcaf_core/caf/binary_deserializer.hpp
View file @
d0ff9a53
...
...
@@ -91,7 +91,7 @@ public:
/// @pre `num_bytes <= remaining()`
void
skip
(
size_t
num_bytes
);
/// Assi
ng
s a new input.
/// Assi
gn
s a new input.
void
reset
(
span
<
const
byte
>
bytes
);
protected:
...
...
libcaf_core/caf/data_processor.hpp
View file @
d0ff9a53
...
...
@@ -409,7 +409,7 @@ public:
apply
(
std
::
chrono
::
duration
<
Rep
,
Period
>&
x
)
{
using
duration_type
=
std
::
chrono
::
duration
<
Rep
,
Period
>
;
// always save/store durations as int64_t to work around possibly
// different integer types on different plat
t
forms for standard typedefs
// different integer types on different platforms for standard typedefs
struct
{
void
operator
()(
duration_type
&
lhs
,
Rep
&
rhs
)
const
{
duration_type
tmp
{
rhs
};
...
...
libcaf_core/caf/detail/delegate_serialize.hpp
View file @
d0ff9a53
...
...
@@ -17,7 +17,7 @@
******************************************************************************/
// The rationale of this header is to provide a serialization API
// that is compat
bi
le to boost.serialization. In particular, the
// that is compat
ib
le to boost.serialization. In particular, the
// design goals are:
// - allow users to integrate existing boost.serialization-based code easily
// - allow to switch out this header with the actual boost header in boost.actor
...
...
libcaf_core/caf/detail/invoke_result_visitor.hpp
View file @
d0ff9a53
...
...
@@ -120,7 +120,7 @@ public:
(
*
this
)(
const_cast
<
const
unit_t
&>
(
x
));
}
// -- special-purpose handlers that don't pro
cud
e results --------------------
// -- special-purpose handlers that don't pro
duc
e results --------------------
/// Calls `(*this)()`.
inline
void
operator
()(
response_promise
&
)
{
...
...
libcaf_core/caf/detail/set_thread_name.hpp
View file @
d0ff9a53
...
...
@@ -20,7 +20,7 @@
namespace
caf
::
detail
{
/// Sets the name thread shown by the OS. Not supported on all plat
t
forms
/// Sets the name thread shown by the OS. Not supported on all platforms
/// (no-op on Windows).
void
set_thread_name
(
const
char
*
name
);
...
...
libcaf_core/caf/detail/type_list.hpp
View file @
d0ff9a53
...
...
@@ -414,7 +414,7 @@ struct tl_reverse_impl<empty_type_list, E...> {
using
type
=
type_list
<
E
...
>
;
};
/// Creates a new list wih elements in reversed order.
/// Creates a new list wi
t
h elements in reversed order.
template
<
class
List
>
struct
tl_reverse
{
using
type
=
typename
tl_reverse_impl
<
List
>::
type
;
...
...
@@ -704,7 +704,7 @@ struct tl_map_conditional<empty_type_list, Trait, TraitResult, Funs...> {
// list pop_back()
/// Creates a new list wih all but the last element of `List`.
/// Creates a new list wi
t
h all but the last element of `List`.
template
<
class
List
>
struct
tl_pop_back
{
using
type
=
typename
tl_slice
<
List
,
0
,
tl_size
<
List
>::
value
-
1
>::
type
;
...
...
libcaf_core/caf/fused_downstream_manager.hpp
View file @
d0ff9a53
...
...
@@ -112,7 +112,7 @@ public:
/// Unique pointer to an outbound path.
using
typename
super
::
unique_path_ptr
;
// Lists all tempate parameters `[T, Ts...]`;
// Lists all temp
l
ate parameters `[T, Ts...]`;
using
param_list
=
detail
::
type_list
<
T
,
Ts
...
>
;
/// State held for each slot.
...
...
libcaf_core/caf/logger.hpp
View file @
d0ff9a53
...
...
@@ -151,7 +151,7 @@ public:
timestamp
tstamp
;
};
/// Internal representation of format string entites.
/// Internal representation of format string entit
i
es.
enum
field_type
{
invalid_field
,
category_field
,
...
...
@@ -406,11 +406,11 @@ bool operator==(const logger::field& x, const logger::field& y);
// -- utility macros -----------------------------------------------------------
#ifdef CAF_MSVC
/// Expands to a string representation of the current func
it
on name that
/// Expands to a string representation of the current func
ti
on name that
/// includes the full function name and its signature.
# define CAF_PRETTY_FUN __FUNCSIG__
#else // CAF_MSVC
/// Expands to a string representation of the current func
it
on name that
/// Expands to a string representation of the current func
ti
on name that
/// includes the full function name and its signature.
# define CAF_PRETTY_FUN __PRETTY_FUNCTION__
#endif // CAF_MSVC
...
...
libcaf_core/caf/make_config_option.hpp
View file @
d0ff9a53
...
...
@@ -99,7 +99,7 @@ config_option make_config_option(T& storage, string_view category,
std
::
addressof
(
storage
)};
}
// -- backward compat
bility, do not use for new code ! -
------------------------
// -- backward compat
ibility, do not use for new code !
------------------------
// Inverts the value when writing to `storage`.
config_option
make_negated_config_option
(
bool
&
storage
,
string_view
category
,
...
...
libcaf_core/caf/memory_managed.hpp
View file @
d0ff9a53
...
...
@@ -26,7 +26,7 @@ namespace caf {
class
memory_managed
{
public:
/// Default implementations calls `delete this, but can
/// be overriden in case deletion depends on some condition or
/// be overrid
d
en in case deletion depends on some condition or
/// the class doesn't use default new/delete.
/// @param decremented_rc Indicates whether the caller did reduce the
/// reference of this object before calling this member
...
...
libcaf_core/caf/message.hpp
View file @
d0ff9a53
...
...
@@ -322,7 +322,7 @@ struct message::cli_arg {
/// Full name of this CLI argument using format "<long name>[,<short name>]"
std
::
string
name
;
/// Desciption of this CLI argument for the auto-generated help text.
/// Desc
r
iption of this CLI argument for the auto-generated help text.
std
::
string
text
;
/// Auto-generated helptext for this item.
...
...
libcaf_core/caf/message_builder.hpp
View file @
d0ff9a53
...
...
@@ -27,7 +27,7 @@
namespace
caf
{
/// Provides a convenient interface for creat
e
ing `message` objects
/// Provides a convenient interface for creating `message` objects
/// from a series of values using the member function `append`.
class
message_builder
{
public:
...
...
libcaf_core/caf/monitorable_actor.hpp
View file @
d0ff9a53
...
...
@@ -102,7 +102,7 @@ public:
protected:
/// Allows subclasses to add additional cleanup code to the
/// critical secion in `cleanup`. This member function is
/// critical sec
t
ion in `cleanup`. This member function is
/// called inside of a critical section.
virtual
void
on_cleanup
(
const
error
&
reason
);
...
...
libcaf_core/caf/pec.hpp
View file @
d0ff9a53
...
...
@@ -59,7 +59,7 @@ enum class pec : uint8_t {
type_mismatch
,
/// Stopped at an unrecognized option name.
not_an_option
,
/// Stopped at an unpars
e
able argument.
/// Stopped at an unparsable argument.
illegal_argument
=
15
,
/// Stopped because an argument was omitted.
missing_argument
,
...
...
libcaf_core/caf/policy/work_stealing.hpp
View file @
d0ff9a53
...
...
@@ -134,7 +134,7 @@ public:
template
<
class
Worker
>
resumable
*
dequeue
(
Worker
*
self
)
{
// we wait for new jobs by polling our external queue: first, we
// assume an active work load on the machine and perform aggresive
// assume an active work load on the machine and perform aggres
s
ive
// polling, then we relax our polling a bit and wait 50 us between
// dequeue attempts
auto
&
strategies
=
d
(
self
).
strategies
;
...
...
@@ -153,8 +153,8 @@ public:
}
if
(
strategies
[
k
].
sleep_duration
.
count
()
>
0
)
{
#ifdef CAF_MSVC
// Windows cannot sleep less than 1000 us, so timeout is conve
ted to 0
// inside sleep_for(), but Sleep(0) is dangerous so replace it with
// Windows cannot sleep less than 1000 us, so timeout is conve
rted to
//
0
inside sleep_for(), but Sleep(0) is dangerous so replace it with
// yield()
if
(
strategies
[
k
].
sleep_duration
.
count
()
<
1000
)
std
::
this_thread
::
yield
();
...
...
libcaf_core/caf/stateful_actor.hpp
View file @
d0ff9a53
...
...
@@ -33,7 +33,7 @@ namespace caf {
/// An event-based actor with managed state. The state is constructed
/// before `make_behavior` will get called and destroyed after the
/// actor called `quit`. This state management brakes cycles and
/// allows actors to automatically release res
s
ources as soon
/// allows actors to automatically release resources as soon
/// as possible.
template
<
class
State
,
class
Base
/* = event_based_actor (see fwd.hpp) */
>
class
stateful_actor
:
public
Base
{
...
...
libcaf_core/caf/string_view.hpp
View file @
d0ff9a53
...
...
@@ -31,7 +31,7 @@ namespace caf {
namespace
detail
{
// Catches `std::string`, `std::string_view` and all classes mimicing those,
// Catches `std::string`, `std::string_view` and all classes mimic
k
ing those,
// but not `std::vector<char>` or other buffers.
template
<
class
T
>
struct
is_string_like
{
...
...
@@ -212,7 +212,7 @@ public:
void
assign
(
const_pointer
data
,
size_type
len
);
// -- algor
ti
hms -------------------------------------------------------------
// -- algor
it
hms -------------------------------------------------------------
size_type
copy
(
pointer
dest
,
size_type
n
,
size_type
pos
=
0
)
const
;
...
...
libcaf_core/src/actor_system_config.cpp
View file @
d0ff9a53
...
...
@@ -106,10 +106,10 @@ actor_system_config::actor_system_config()
opt_group
{
custom_options_
,
"logger"
}
.
add
<
atom_value
>
(
"verbosity"
,
"default verbosity for file and console"
)
.
add
<
string
>
(
"file-name"
,
"filesystem path of the log file"
)
.
add
<
string
>
(
"file-format"
,
"line format for individual log file ent
ir
es"
)
.
add
<
string
>
(
"file-format"
,
"line format for individual log file ent
ri
es"
)
.
add
<
atom_value
>
(
"file-verbosity"
,
"file output verbosity"
)
.
add
<
atom_value
>
(
"console"
,
"std::clog output: none, colored, or uncolored"
)
.
add
<
string
>
(
"console-format"
,
"line format for printed log ent
ir
es"
)
.
add
<
string
>
(
"console-format"
,
"line format for printed log ent
ri
es"
)
.
add
<
atom_value
>
(
"console-verbosity"
,
"console output verbosity"
)
.
add
<
std
::
vector
<
atom_value
>>
(
"component-blacklist"
,
"excluded components for logging"
)
...
...
@@ -223,7 +223,7 @@ actor_system_config::make_help_text(const std::vector<message::cli_arg>& xs) {
auto
op
=
[](
size_t
tmp
,
const
message
::
cli_arg
&
arg
)
{
return
std
::
max
(
tmp
,
arg
.
helptext
.
size
());
};
// maximum string leng
ht
of all options
// maximum string leng
th
of all options
auto
name_width
=
std
::
accumulate
(
xs
.
begin
(),
xs
.
end
(),
size_t
{
0
},
op
);
// iterators to the vector with respect to partition point
auto
first
=
xs
.
begin
();
...
...
libcaf_core/src/config_option_set.cpp
View file @
d0ff9a53
...
...
@@ -58,7 +58,7 @@ config_option_set& config_option_set::add(config_option opt) {
}
std
::
string
config_option_set
::
help_text
(
bool
global_only
)
const
{
//<--- argument --------> <---- desc
iption -
--->
//<--- argument --------> <---- desc
ription
--->
// (-w|--write) <string> : output file
auto
build_argument
=
[](
const
config_option
&
x
)
{
string_builder
sb
;
...
...
libcaf_core/src/logger.cpp
View file @
d0ff9a53
...
...
@@ -409,7 +409,7 @@ void logger::render_fun_prefix(std::ostream& out, const event& x) {
// ^~~~~~~~~~~~~
// Here, we output Java-style "my.namespace" to `out`.
auto
reduced
=
x
.
pretty_fun
;
// Skip all prefixes that can prece
ed
the return type.
// Skip all prefixes that can prece
de
the return type.
auto
skip
=
[
&
](
string_view
str
)
{
if
(
starts_with
(
reduced
,
str
))
{
reduced
.
remove_prefix
(
str
.
size
());
...
...
libcaf_core/src/message.cpp
View file @
d0ff9a53
...
...
@@ -363,7 +363,7 @@ message::cli_res message::extract_opts(std::vector<cli_arg> xs,
return
skip
();
if
(
arg
==
"--"
)
{
skip_remainder
=
true
;
// drop f
ri
st remainder indicator
// drop f
ir
st remainder indicator
return
none
;
}
if
(
arg
.
empty
()
||
arg
.
front
()
!=
'-'
)
{
...
...
libcaf_core/src/replies_to.cpp
View file @
d0ff9a53
...
...
@@ -29,7 +29,7 @@ std::string replies_to_type_name(size_t input_size,
std
::
string
result
;
// 'void' is not an announced type, hence we check whether uniform_typeid
// did return a valid pointer to identify 'void' (this has the
// possibility of false positives, but those will be ca
tched
anyways)
// possibility of false positives, but those will be ca
ught
anyways)
result
=
"caf::replies_to<"
;
result
+=
join
(
input
,
input
+
input_size
,
glue
);
result
+=
">::with<"
;
...
...
libcaf_core/src/scheduled_actor.cpp
View file @
d0ff9a53
...
...
@@ -460,7 +460,7 @@ void scheduled_actor::quit(error x) {
for
(
auto
i
=
managers
.
begin
();
i
!=
e
;
++
i
)
{
auto
&
mgr
=
*
i
;
mgr
->
shutdown
();
// Managers can become done after calling quit if they were continous.
// Managers can become done after calling quit if they were contin
u
ous.
if
(
mgr
->
done
())
{
mgr
->
stop
();
erase_stream_manager
(
mgr
);
...
...
@@ -1076,7 +1076,7 @@ void scheduled_actor::erase_stream_manager(const stream_manager_ptr& mgr) {
invoke_message_result
scheduled_actor
::
handle_open_stream_msg
(
mailbox_element
&
x
)
{
CAF_LOG_TRACE
(
CAF_ARG
(
x
));
// Fetches a stream manger from a behavior.
// Fetches a stream man
a
ger from a behavior.
struct
visitor
:
detail
::
invoke_result_visitor
{
void
operator
()()
override
{
// nop
...
...
libcaf_core/src/string_view.cpp
View file @
d0ff9a53
...
...
@@ -83,7 +83,7 @@ void string_view::assign(const_pointer data, size_type len) {
size_
=
len
;
}
// -- algor
ti
hms ---------------------------------------------------------------
// -- algor
it
hms ---------------------------------------------------------------
string_view
::
size_type
string_view
::
copy
(
pointer
dest
,
size_type
n
,
size_type
pos
)
const
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment