Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make log mutex visible #328

Merged
merged 1 commit into from
Apr 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [20.4] (unreleased)
## [20.8] (unreleased)

### Added
- Add nvti_get_tag() [#285](https://github.com/greenbone/gvm-libs/pull/285)
Expand All @@ -16,11 +16,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Add function to set and get the NVT QoD. [#321](https://github.com/greenbone/gvm-libs/pull/321)
- Add unit tests for networking.c port list functions. [#325](https://github.com/greenbone/gvm-libs/pull/325)
- Add gmp_start_task_ext_c. [#327](https://github.com/greenbone/gvm-libs/pull/327)
- Make log mutex visible. [#328](https://github.com/greenbone/gvm-libs/pull/328)

### Fixed
- Fix is_cidr_block(). [#322](https://github.com/greenbone/gvm-libs/pull/322)

[20.4]: https://github.com/greenbone/gvm-libs/compare/gvm-libs-11.0...master
[20.8]: https://github.com/greenbone/gvm-libs/compare/gvm-libs-11.0...master

## [11.0.1] (unreleased)

Expand Down
4 changes: 2 additions & 2 deletions base/logging.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ gvm_log_lock_init (void)
/**
* @brief Try to lock logger_mutex.
*/
static void
void
gvm_log_lock (void)
{
g_mutex_lock (logger_mutex);
Expand All @@ -366,7 +366,7 @@ gvm_log_lock (void)
/**
* @brief Unlock logger_mutex.
*/
static void
void
gvm_log_unlock (void)
{
g_mutex_unlock (logger_mutex);
Expand Down
6 changes: 6 additions & 0 deletions base/logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,10 @@ log_func_for_gnutls (int, const char *);
void
setup_log_handlers (GSList *);

void
gvm_log_lock (void);

void
gvm_log_unlock (void);

#endif /* not _GVM_LOGGING_H */