mirror of
https://github.com/janet-lang/janet
synced 2026-09-08 18:39:11 +00:00
Add robinhood hashing to structs.
This corrects changes in internal structure when values were inserted in different orders (which was previously incorrect.) Robinhood hashing should correct this by making the internal structure of the hashtable invariant of insertion order. This, in turn, allows naive and deterministic equality, comparison, and hashing of structs.
This commit is contained in:
+2
-1
@@ -209,7 +209,8 @@ struct GstThread {
|
||||
enum {
|
||||
GST_THREAD_PENDING = 0,
|
||||
GST_THREAD_ALIVE,
|
||||
GST_THREAD_DEAD
|
||||
GST_THREAD_DEAD,
|
||||
GST_THREAD_ERROR
|
||||
} status;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user