gingerBill
2dfa3a5df7
Fix typo
2020-09-07 14:40:36 +01:00
gingerBill
1064622ff7
Improve math/rand functionality
2020-09-07 14:38:01 +01:00
gingerBill
f5b8609160
Remove debug print
2020-09-07 12:15:54 +01:00
gingerBill
7f48cf8405
[REFLECTION BREAKING] Modify the internals of the map type to increase performance
2020-09-07 11:41:42 +01:00
gingerBill
7e08bccc9a
Merge branch 'master' of https://github.com/odin-lang/Odin
2020-09-04 11:18:58 +01:00
gingerBill
9fd9130891
Add new core procedures: ordered_remove_range; unordered_remove_range; insert_at
2020-09-04 11:18:46 +01:00
gingerBill
9f1f194d18
Merge pull request #727 from JoshuaManton/master-fork
...
Add allocator parameter to os.read_entire_file()
2020-09-03 08:37:22 +01:00
Joshua Mark Manton
0fe47a2f1b
Add allocator parameter to os.read_entire_file()
2020-09-02 18:42:12 -07:00
Michael Kutowski
7b0ba76915
Update specific.odin
2020-08-29 22:33:24 +02:00
Michael Kutowski
12895de9ac
fix hsl math.mod to usual hsl conversion
2020-08-29 21:49:49 +02:00
gingerBill
0216ade2f9
Merge pull request #721 from Tetralux/fix-getcwd-allocator
...
Fix os.get_current_directory() allocator
2020-08-27 11:38:24 +01:00
jockus
914c99a15e
Merge branch 'master' into fix-core-path-name-extension
2020-08-27 08:24:59 +01:00
gingerBill
d3eca21e40
Fix style in parse.odin
2020-08-26 22:48:32 +01:00
gingerBill
999d1a022d
Merge branch 'master' of https://github.com/odin-lang/Odin
2020-08-26 22:41:06 +01:00
gingerBill
1f2f3cb315
Fix #712
2020-08-26 22:40:03 +01:00
jockus
8de70ce73d
Fix path.name failing to remove extension
2020-08-26 17:32:47 +01:00
Tetralux
3820f27c7c
Fix os.get_current_directory() allocator
...
This procedure accidentally used the temporary allocator for the
returned string.
Use context.allocator, and the allocator parameter idiom instead.
2020-08-26 11:37:44 +00:00
Platin21
3946f357e8
Update ring.odin
...
Someone missed the T type here ;)
2020-08-22 13:12:18 +02:00
gingerBill
b9b2b90f0c
Merge branch 'master' of https://github.com/odin-lang/Odin
2020-08-18 21:12:02 +01:00
gingerBill
a6a7395be7
Update unicode/letter.odin
2020-08-18 21:11:51 +01:00
Mikkel Hjortshoej
16b50a2f57
Fix #711
2020-08-18 21:57:47 +02:00
gingerBill
e7f54d25d6
Add mem.Allocator_Query_Info and mem.query_info
2020-08-16 23:05:33 +01:00
gingerBill
033b46def8
Add mem.Allocator_Mode.Query_Features, mem.Allocator_Mode_Set, mem.query_features`
2020-08-16 22:07:40 +01:00
gingerBill
1f571f48e5
Add mem.Tracking_Allocator
2020-08-16 21:29:14 +01:00
gingerBill
ec178825ec
Add more sort.compare_* procedures
2020-08-16 12:40:28 +01:00
gingerBill
6158a49618
Make sync.atomic_* operations use when statements instead of switch; Make #panic diverging
2020-08-16 12:34:12 +01:00
gingerBill
674aeffee4
Fix typo
2020-08-12 19:15:47 +01:00
gingerBill
546759bdef
Fix multi_logger_proc to check for lowest_level
2020-08-12 19:01:25 +01:00
gingerBill
9fd35776fd
Fix typos in math.odin
2020-08-04 14:40:11 +01:00
gingerBill
3385fcecb0
Fix typo
2020-08-04 14:31:14 +01:00
gingerBill
804b96a985
Remove unused entities
2020-08-02 15:11:21 +01:00
gingerBill
9cc20954a3
Add sys/windows/synchronization.odin
2020-08-02 15:07:52 +01:00
gingerBill
91ff3e5bca
Add sync/channel_*.odin files
2020-08-02 15:05:04 +01:00
gingerBill
6d032e6f1a
Update package sync
2020-08-02 15:01:17 +01:00
gingerBill
16abfd56e8
Merge branch 'master' of https://github.com/odin-lang/Odin
2020-08-02 14:59:51 +01:00
gingerBill
d1d5f61230
Add intrinsics.alloca
2020-08-02 14:59:39 +01:00
gingerBill
cbfe3571ab
Merge pull request #693 from powerc9000/patch-2
...
Fix pthread_t on Macos.
2020-07-22 22:28:38 +01:00
gingerBill
b04bc21ec6
Merge pull request #704 from oskarnp/log_thread_id
...
Add .Thread_Id option to log package
2020-07-22 22:27:53 +01:00
Oskar Nordquist
36cac87387
Add .Thread_Id option to log package
2020-07-22 17:42:01 +02:00
Oskar Nordquist
a7e38dc063
Implement os.current_thread_id() for Darwin (assumes OSX 10.6 / iOS 3.2 and later)
2020-07-22 17:38:13 +02:00
gingerBill
3a1492fc99
Add sync.Wait_Group
2020-07-15 00:25:37 +01:00
gingerBill
7ae54ae3b4
Add -no-dynamic-literals to disallow dynamic array and map literals
2020-07-14 23:01:34 +01:00
gingerBill
b2beb9512f
Add thread.join_multiple
2020-07-14 21:08:04 +01:00
gingerBill
96ad6d2084
Improve sync.Channel behaviour
2020-07-14 18:43:50 +01:00
gingerBill
6565a49e34
Remove fmt from sync/channel.odin
2020-07-14 16:39:47 +01:00
gingerBill
ce85b73eca
Add sync.Once
2020-07-14 16:38:54 +01:00
gingerBill
fc65aee307
Update sync.Channel
2020-07-14 16:37:29 +01:00
jharler
f9a6777e3a
Added "sep" parameter to logging procs
2020-07-13 08:22:41 -04:00
Clay Murray
83eabe2140
Fix pthread_t on Macos.
...
From some testing with directly using C code, pthread_t on macos is 8 bytes.
This is my test code:
```
#include <assert.h>
#include <stdio.h>
#include <pthread.h>
void* PosixThreadMainRoutine(void* data)
{
// Do some work here.
for (int i = 0; i < 2000000000; i++) {
}
return NULL;
}
pthread_t LaunchThread()
{
// Create the thread using POSIX routines.
pthread_attr_t attr;
pthread_t posixThreadID;
int returnVal;
returnVal = pthread_attr_init(&attr);
assert(!returnVal);
returnVal = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
assert(!returnVal);
int threadError = pthread_create(&posixThreadID, &attr, &PosixThreadMainRoutine, NULL);
returnVal = pthread_attr_destroy(&attr);
assert(!returnVal);
if (threadError != 0)
{
// Report an error.
}
return posixThreadID;
}
int main() {
pthread_t t = LaunchThread();
void ** ret;
printf("%d, %d\n", sizeof(t), sizeof(pthread_t));
int val = pthread_join(t, ret);
printf("%d", val);
return 0;
}
```
running this on macos reports `8, 8`.
Then I made the proposed changes and errors I was having with threads completely went away.
2020-07-11 18:22:56 -06:00
gingerBill
c4067372dd
Fix double declaration
2020-07-10 22:28:48 +01:00