Minor improvements.
GitOrigin-RevId: a50ba2cc0b47b395d7d7787ad59868d23bf22634
This commit is contained in:
parent
c0119d0b89
commit
abb140a714
@ -1244,7 +1244,7 @@ class MessagesManager : public Actor {
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct PendingSecretMessage {
|
struct PendingSecretMessage {
|
||||||
enum class Type { NewMessage, DeleteMessages, DeleteHistory };
|
enum class Type : int32 { NewMessage, DeleteMessages, DeleteHistory };
|
||||||
Type type = Type::NewMessage;
|
Type type = Type::NewMessage;
|
||||||
|
|
||||||
// for NewMessage
|
// for NewMessage
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||||
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
//
|
//
|
||||||
|
#include "td/utils/common.h"
|
||||||
|
#include "td/utils/logging.h"
|
||||||
#include "td/utils/Random.h"
|
#include "td/utils/Random.h"
|
||||||
#include "td/utils/tests.h"
|
#include "td/utils/tests.h"
|
||||||
|
|
||||||
|
@ -79,7 +79,8 @@ void ThreadPthread::detach() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int ThreadPthread::do_pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)(void *), void *arg) {
|
int ThreadPthread::do_pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)(void *),
|
||||||
|
void *arg) {
|
||||||
return pthread_create(thread, attr, start_routine, arg);
|
return pthread_create(thread, attr, start_routine, arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user