Skip to content

Commit

Permalink
Make visible the functions to lock/unlock the log mutex.
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnicola authored and janowagner committed Apr 30, 2020
1 parent 456f409 commit b793c2e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
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 */

0 comments on commit b793c2e

Please sign in to comment.