mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
59 lines
1000 B
Diff
59 lines
1000 B
Diff
--- a/src/mutex.cpp
|
|
+++ b/src/mutex.cpp
|
|
@@ -20,23 +20,23 @@
|
|
|
|
#include "mutex.h"
|
|
|
|
-const pthread_mutex_t mutex::recmutex = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
|
|
+const pthread_mutex_t mutex_no_nameclash::recmutex = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
|
|
const pthread_cond_t condition_var::cond = PTHREAD_COND_INITIALIZER;
|
|
|
|
-mutex::mutex( )
|
|
+mutex_no_nameclash::mutex_no_nameclash( )
|
|
{
|
|
m_mutex_lock = recmutex;
|
|
}
|
|
|
|
void
|
|
-mutex::lock( )
|
|
+mutex_no_nameclash::lock( )
|
|
{
|
|
pthread_mutex_lock( &m_mutex_lock );
|
|
}
|
|
|
|
|
|
void
|
|
-mutex::unlock( )
|
|
+mutex_no_nameclash::unlock( )
|
|
{
|
|
pthread_mutex_unlock( &m_mutex_lock );
|
|
}
|
|
--- a/src/mutex.h
|
|
+++ b/src/mutex.h
|
|
@@ -24,7 +24,7 @@
|
|
|
|
#include <pthread.h>
|
|
|
|
-class mutex {
|
|
+class mutex_no_nameclash {
|
|
|
|
private:
|
|
|
|
@@ -37,14 +37,14 @@
|
|
|
|
public:
|
|
|
|
- mutex();
|
|
+ mutex_no_nameclash();
|
|
|
|
void lock();
|
|
void unlock();
|
|
|
|
};
|
|
|
|
-class condition_var : public mutex {
|
|
+class condition_var : public mutex_no_nameclash {
|
|
|
|
private:
|
|
|