| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2016-06-28 | py/nlrsetjmp: Update to take into account new location of nlr_top. | Damien George | |
| It's now accessed via the MP_STATE_THREAD macro. | |||
| 2016-06-28 | py/nlrthumb: Convert NLR thumb funcs from asm to C with inline-asm. | Damien George | |
| Now only the bits that really need to be written in assembler are written in it, otherwise C is used. This means that the assembler code no longer needs to know about the global state structure which makes it much easier to maintain. | |||
| 2016-06-28 | py/modthread: Allow to properly set the stack limit of a thread. | Damien George | |
| We rely on the port setting and adjusting the stack size so there is enough room to recover from hitting the stack limit. | |||
| 2016-06-28 | py/mpthread.h: Move GIL macros outside MICROPY_PY_THREAD block. | Damien George | |
| The GIL macros are needed even if threading is not enabled. | |||
| 2016-06-28 | py/modthread: Make Lock objects work when GIL is enabled. | Damien George | |
| 2016-06-28 | py: Don't use gc or qstr mutex when the GIL is enabled. | Damien George | |
| There is no need since the GIL already makes gc and qstr operations atomic. | |||
| 2016-06-28 | py: Implement a simple global interpreter lock. | Damien George | |
| This makes the VM/runtime thread safe, at the cost of not being able to run code in parallel. | |||
| 2016-06-28 | py: Make interning of qstrs thread safe. | Damien George | |
| 2016-06-28 | py/gc: Fix GC+thread bug where ptr gets lost because it's not computed. | Damien George | |
| GC_EXIT() can cause a pending thread (waiting on the mutex) to be scheduled right away. This other thread may trigger a garbage collection. If the pointer to the newly-allocated block (allocated by the original thread) is not computed before the switch (so it's just left as a block number) then the block will be wrongly reclaimed. This patch makes sure the pointer is computed before allowing any thread switch to occur. | |||
| 2016-06-28 | py/modthread: Call mp_thread_start/mp_thread_finish around threads. | Damien George | |
| So the underlying thread implementation can do any necessary bookkeeping. | |||
| 2016-06-28 | py/modthread: Be more careful with root pointers when creating a thread. | Damien George | |
| 2016-06-28 | py/gc: Fix 2 cases of concurrent access to ATB and FTB. | Damien George | |
| 2016-06-28 | py/modthread: Satisfy unused-args warning. | Damien George | |
| 2016-06-28 | py/gc: Make memory manager and garbage collector thread safe. | Damien George | |
| By using a single, global mutex, all memory-related functions (alloc, free, realloc, collect, etc) are made thread safe. This means that only one thread can be in such a function at any one time. | |||
| 2016-06-28 | py/modthread: Add with-context capabilities to lock object. | Damien George | |
| 2016-06-28 | py/modthread: Implement lock object, for creating a mutex. | Damien George | |
| 2016-06-28 | py/modthread: Add exit() function. | Damien George | |
| Simply raises the SystemExit exception. | |||
| 2016-06-28 | py/modthread: Add stack_size() function. | Damien George | |
| 2016-06-28 | py/modthread: Properly cast concrete exception pointer to an object. | Damien George | |
| 2016-06-28 | py: Add basic _thread module, with ability to start a new thread. | Damien George | |
| 2016-06-28 | py: Add MP_STATE_THREAD to hold state specific to a given thread. | Damien George | |
| 2016-06-19 | py/objtype: Inherit protocol vtable from base class only if it exists. | Paul Sokolovsky | |
| 2016-06-19 | py/mphal.h: If virtpin API is used, automagically include its header. | Paul Sokolovsky | |
| 2016-06-19 | py/objtype: instance: Inherit protocol vtable from a base class. | Paul Sokolovsky | |
| This allows to define an abstract base class which would translate C-level protocol to Python method calls, and any subclass inheriting from it will support this feature. This in particular actually enables recently introduced machine.PinBase class. | |||
| 2016-06-18 | extmod/machine_pinbase: Implementation of PinBase class. | Paul Sokolovsky | |
| Allows to translate C-level pin API to Python-level pin API. In other words, allows to implement a pin class and Python which will be usable for efficient C-coded algorithms, like bitbanging SPI/I2C, time_pulse, etc. | |||
| 2016-06-18 | all: Rename mp_obj_type_t::stream_p to protocol. | Paul Sokolovsky | |
| It's now used for more than just stream protocol (e.g. pin protocol), so don't use false names. | |||
| 2016-06-16 | py: Rename __QSTR_EXTRACT flag to NO_QSTR. | Paul Sokolovsky | |
| It has more usages than just qstr extraction, for example, embedding (where people don't care about efficient predefined qstrs). | |||
| 2016-06-16 | py/mkrules.mk: Define "lib" outside conditional block. | Paul Sokolovsky | |
| "lib" happened to be defined inside block conditional on $(PROG). | |||
| 2016-06-16 | py/makeqstrdefs.py: Remove restriction that source path can't be absolute. | Paul Sokolovsky | |
| That's arbitrary restriction, in case of embedding, a source file path may be absolute. For the purpose of filtering out system includes, checking for ".c" suffix is enough. | |||
| 2016-06-15 | py/mpconfig.h: MP_NOINLINE is universally useful, move from unix port. | Paul Sokolovsky | |
| 2016-06-15 | py: Support to build berkeley db 1.85 and "btree" module. | Paul Sokolovsky | |
| 2016-06-12 | py/objdict: Implemented OrderedDict equality check. | Mark Anthony Palomer | |
| 2016-06-06 | py/parse: Treat constants that start with underscore as private. | Damien George | |
| Assignments of the form "_id = const(value)" are treated as private (following a similar CPython convention) and code is no longer emitted for the assignment to a global variable. See issue #2111. | |||
| 2016-05-31 | extmod/machine: Add MICROPY_PY_MACHINE_PULSE config for time_pulse_us. | Damien George | |
| Since not all ports that enable the machine module have the pin HAL functions. | |||
| 2016-05-31 | extmod: Add machine time_pulse_us function (at C and Python level). | Damien George | |
| The C implementation is taken from the DHT driver. | |||
| 2016-05-28 | py/modstruct: Allow to have "0s" in struct format. | Damien George | |
| 2016-05-28 | py/moduerrno: Add ECONNREFUSED, one of frequent networking errors. | Paul Sokolovsky | |
| 2016-05-27 | extmod/virtpin: Initial implementation of open-ended C-level Pin interface. | Paul Sokolovsky | |
| Using usual method of virtual method tables. Single virtual method, ioctl, is defined currently for all operations. This universal and extensible vtable-based method is also defined as a default MPHAL GPIO implementation, but a specific port may override it with its own implementation (e.g. close-ended, but very efficient, e.g. avoiding virtual method dispatch). | |||
| 2016-05-25 | py/moduerrno: Add EEXIST, EISDIR. | Paul Sokolovsky | |
| Useful to check file/dir operations result, in particular used by upip. | |||
| 2016-05-23 | py/objnamedtuple: Allow passing field names as a tuple. | Antonin ENFRUN | |
| So the documentation's example works. Besides, a tuple can be more memory efficient. | |||
| 2016-05-23 | py/makeqstrdata.py: Allow to have double-quote characters in qstrs. | Damien George | |
| When rendering the qstr for a C header file, the double-quate character must be escaped. | |||
| 2016-05-23 | py: Allow to stat and import frozen mpy files using new frozen "VFS". | Damien George | |
| Freezing mpy files using mpy-tool.py now works again. | |||
| 2016-05-22 | py/objstr: Fix mix-signed comparison in str.center(). | Paul Sokolovsky | |
| 2016-05-22 | py/objstr*: Properly ifdef str.center(). | Dave Hylands | |
| 2016-05-22 | py/objstr: Implement str.center(). | Paul Sokolovsky | |
| Disabled by default, enabled in unix port. Need for this method easily pops up when working with text UI/reporting, and coding workalike manually again and again counter-productive. | |||
| 2016-05-21 | py/builtinimport: Unbreak bare-arm build. | Paul Sokolovsky | |
| 2016-05-21 | py/builtinimport: Unbreak minimal build. | Paul Sokolovsky | |
| These are workarounds required until frozen .mpy loading following standard frozen modules code path. | |||
| 2016-05-21 | py/{builtinimport,frozenmod}: Rework frozen modules support to support packages. | Paul Sokolovsky | |
| Now frozen modules is treated just as a kind of VFS, and all operations performed on it correspond to operations on normal filesystem. This allows to support packages properly, and potentially also data files. This change also have changes to rework frozen bytecode modules support to use the same framework, but it's not finished (and actually may not work, as older adhox handling of any type of frozen modules is removed). | |||
| 2016-05-21 | py/mphal.h: Provide default prototypes for mp_hal_delay_us/mp_hal_ticks_us. | Paul Sokolovsky | |
| Similar to existing mp_hal_delay_ms/mp_hal_ticks_ms. | |||
| 2016-05-20 | py/stream: Add mp_stream_close() helper function. | Paul Sokolovsky | |
