about summary refs log tree commit diff stats
path: root/app/views/comment_mailer/new_pending_comment_email.text.erb
blob: 787d6b8bb2bb81dd51e35d6f6e015b0390388526 (plain) (blame) generated by cgit-pink 1.4.1 (git 2.36.1) at 2025-01-22 23:13:35 +0000 n> std::stringcreate(std::mt19937&rng);voidsubscribe(conststd::string&token,subscribe_callback_typecallback);voidpost(conststd::string&token,conststd::string&msg);voidsetResult(conststd::string&token,conststd::string&result);conststd::string&getResult(conststd::string&token);voidmark_done(conststd::string&token);boolis_done(conststd::string&token);private:structrequest{std::vector<std::optional<subscribe_callback_type>>subscribers;std::stringresult;booldone=false;};std::mutexmutex_;std::map<std::string,request>requests_;};#endif /* end of include guard: DATABASE_H_0A27B356 */