#Make the following files:
Note: depending on your system you may need to modify the following variables SYSTEMD_LIB_DIR
and GROUP_DIR
bad-cgroup-demo.service
[Unit]
Description=Systemd bad cgroup demo
[Service]
// clang++-3.6 -std=c++11 verify.cc -overify-systemd; ./verify-systemd | |
#include <sstream> | |
#include <stdexcept> | |
#include <string> | |
#include <string.h> | |
#include <stdio.h> |
#Make the following files:
Note: depending on your system you may need to modify the following variables SYSTEMD_LIB_DIR
and GROUP_DIR
bad-cgroup-demo.service
[Unit]
Description=Systemd bad cgroup demo
[Service]
layout |
---|
documentation |
#Configuration
There is currently only one implementation of the libprocess socket interface that supports SSL. This implementation uses libevent. Specifically it relies on the libevent-openssl
library that wraps openssl
.
After build Mesos 0.23.0
from source, assuming you have installed the required Dependencies, you can modify your configure line to enable SSL as follows:
auto lambda = [] () { return true };
auto lambda = [] () {
...;
};
socket.send([] () {
...;
std::map<K, V> data;
for (const std::pair<K, V>& pair : data) {}
for (const auto& pair : data) {}
Proposal:
We modify the style guide to disallow constant references to temporaries as a whole. This means disallowing both Case 1 and Case 2 below.
Background:
// See full example below.
T f(const char* s) { return T(s); }
#include <unordered_set> | |
/* Templatized storage without forward declaration of types. */ | |
class TC { | |
public: | |
template<typename T> | |
class TM { | |
public: | |
virtual ~TM() { C->Part(this); } | |
protected: |
class IP { | |
enum family { | |
INET, | |
INET6 | |
}; | |
virtual ~IP() {} | |
inline family getFamily() const { | |
return _family; | |
} | |
virtual setSockAddrIn(sockaddr_in& data) const = 0; |
class StreamImpl : public std::enable_shared_from_this {
public:
virtual ~StreamImpl() {}
virtual Future<size_t> write(const std::string& data) = 0;
private:
std::shared_ptr<StreamImpl> self;
};
class SocketImpl : public StreamImpl {