mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
Further threading and API restructuring for logging and input
frameworks. There were a number of cases that weren't thread-safe. In particular, we don't use std::string anymore for anything that's passed between threads (but instead plain old const char*, with manual memmory managmenet). This is still a check-point commit, I'll do more testing.
This commit is contained in:
parent
490859cfef
commit
87e10b5f97
31 changed files with 692 additions and 381 deletions
|
@ -2692,12 +2692,12 @@ bool RemoteSerializer::ProcessLogCreateWriter()
|
|||
|
||||
int id, writer;
|
||||
int num_fields;
|
||||
logging::WriterBackend::WriterInfo info;
|
||||
logging::WriterBackend::WriterInfo* info = new logging::WriterBackend::WriterInfo();
|
||||
|
||||
bool success = fmt.Read(&id, "id") &&
|
||||
fmt.Read(&writer, "writer") &&
|
||||
fmt.Read(&num_fields, "num_fields") &&
|
||||
info.Read(&fmt);
|
||||
info->Read(&fmt);
|
||||
|
||||
if ( ! success )
|
||||
goto error;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue