331
algorithm would loop back to check if the generation number matches. If it is successful,
the running thread initializes the variable and once again increments the generation
number – this time to an even number that should match the number stored in the pool
header.
Summary
This chapter described the architecture and inner workings of libpmemobj. We
also discuss the reasons for the choices that were made during the design and
implementation of libpmemobj. With this knowledge, you can accurately reason about
the semantics and performance characteristics of code written using this library.
Open Access This chapter is licensed under the terms of the Creative
Commons Attribution 4.0 International License (http://creativecommons.
org/licenses/by/4.0/), which permits use, sharing, adaptation, distribution and
reproduction in any medium or format, as long as you give appropriate credit to the
original author(s) and the source, provide a link to the Creative Commons license and
indicate if changes were made.
The images or other third party material in this chapter are included in the chapter’s
Creative Commons license, unless indicated otherwise in a credit line to the material. If
material is not included in the chapter’s Creative Commons license and your intended
use is not permitted by statutory regulation or exceeds the permitted use, you will need
to obtain permission directly from the copyright holder.
Chapter 16 pMDK Internals: IMportant algorIthMs anD Data struCtures
algorithm would loop back to check if the generation number matches. If it is successful,
the running thread initializes the variable and once again increments the generation
number – this time to an even number that should match the number stored in the pool
header.
Summary
This chapter described the architecture and inner workings of libpmemobj. We
also discuss the reasons for the choices that were made during the design and
implementation of libpmemobj. With this knowledge, you can accurately reason about
the semantics and performance characteristics of code written using this library.
Open Access This chapter is licensed under the terms of the Creative
Commons Attribution 4.0 International License (http://creativecommons.
org/licenses/by/4.0/), which permits use, sharing, adaptation, distribution and
reproduction in any medium or format, as long as you give appropriate credit to the
original author(s) and the source, provide a link to the Creative Commons license and
indicate if changes were made.
The images or other third party material in this chapter are included in the chapter’s
Creative Commons license, unless indicated otherwise in a credit line to the material. If
material is not included in the chapter’s Creative Commons license and your intended
use is not permitted by statutory regulation or exceeds the permitted use, you will need
to obtain permission directly from the copyright holder.
Chapter 16 pMDK Internals: IMportant algorIthMs anD Data struCtures
